PHP code example of riki137 / amp-client
1. Go to this page and download the library: Download riki137/amp-client 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/ */
riki137 / amp-client example snippets
use Riki137\AmpClient\AmpHttpClientV5;
$client = new AmpHttpClientV5($options, null, $maxHostConnections, $maxPendingPushes);
// implements HttpClientInterface, as you're used to
$client->request('GET', 'https://example.com');
\Revolt\EventLoop::run();