1. Go to this page and download the library: Download request-interop/interface library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
request-interop / interface example snippets
public request_body_array $body { get; }
public StreamInterop\Interface\StringableStream $bodyStream { get; }
public request_cookies_array $cookies { get; }
public request_headers_array $headers { get; }
public request_method_string $method { get; }
public request_query_array $query { get; }
public request_server_array $server { get; }
public upload_structs_array $uploads { get; }
public UriInterop\Interface\UriStruct $uri { get; }