1. Go to this page and download the library: Download 10quality/php-curl 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/ */
10quality / php-curl example snippets
// With global `curl_request()`
$response = curl_request('http://my-api.com');
// With global `get_curl_contents()`
// --- Which is an alias of `curl_request()`
$response = get_curl_contents('http://my-api.com');
// With class `Curl`
$response = Curl::request('http://my-api.com');