PHP code example of 99designs / ergo-http

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

    

99designs / ergo-http example snippets



$client = new \Ergo\Http\Client(new \Ergo\Http\Url($host));
$response = $client->get($path);

echo $response->getBody();