PHP code example of amphp / http-client-guzzle-adapter

1. Go to this page and download the library: Download amphp/http-client-guzzle-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/ */

    

amphp / http-client-guzzle-adapter example snippets




use Amp\Http\Client\GuzzleAdapter\GuzzleHandlerAdapter;
use GuzzleHttp\Client;
use GuzzleHttp\HandlerStack;

$client = new Client([
    'handler' => HandlerStack::create(new GuzzleHandlerAdapter()),
]);