PHP Curl Class

Easily send HTTP requests and integrate with web APIs

$curl = new Curl();
$curl->get('https://www.example.com/');

if ($curl->error) {
    echo 'Error: ' . $curl->errorMessage . "\n";
    $curl->diagnose();
} else {
    echo 'Success! Here is the response:' . "\n";
    var_dump($curl->response);
}

    

https://github.com/php-curl-class/php-curl-class