PHP code example of concrete5-community / http_client_compat

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

    

concrete5-community / http_client_compat example snippets


$client = app(CHttpClient\Client::class);
$response = $client->get('https://www.example.org/');