PHP code example of alex-kalanis / remote-request-psr

1. Go to this page and download the library: Download alex-kalanis/remote-request-psr 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/ */

    

alex-kalanis / remote-request-psr example snippets


    $request = \kalanis\RemoteRequestPsr\Content\Request();
    // ... $request is PSR request class WITHOUT immutability. So the most things works.

    $lib = new \kalanis\RemoteRequestPsr\Processor\Simple();
    $response = $lib->process($request);

    // ... $response is PSR response class WITHOUT immutability. So the most things works.
    return strval($response->getBody());