PHP code example of ebidtech / http-client

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

    

ebidtech / http-client example snippets







namespace XXX;

use EBT\HttpClient\CreateTrait as HttpClientCreateTrait;
use Guzzle\Http\Client as GuzzleHttpClient;

class <HttpClient> {
    use HttpClientCreateTrait;

    /**
     * @var GuzzleHttpClient
     */
    private $client;

    ...
    $this->client = $this->create($host, $userAgent, $config);
}