PHP code example of ricardofiorani / guzzle-psr18-adapter
1. Go to this page and download the library: Download ricardofiorani/guzzle-psr18-adapter 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/ */
ricardofiorani / guzzle-psr18-adapter example snippets
$client = new \RicardoFiorani\GuzzlePsr18Adapter\Client();
$request = new \Your\Implementation\Of\Psr7\Request();
try {
echo $client->sendRequest($request);
} catch (\Psr\Http\Client\ClientExceptionInterface $exception) {
// your error handling
}