PHP Curl Class

PHP Curl Class: an object-oriented wrapper for curl functions. Supports REST request methods: GET, POST, PUT, PATCH, and DELETE. Examples:

require __DIR__ . '/vendor/autoload.php';
$curl = new Curl();
$curl->setUserAgent('SomeBot (+');
if ($curl->error) {
    echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage;
} else {
    echo $curl->response;

More examples and download at

Did this help you? Please let me know with a comment. Thank you
Posted .

Comments (RSS)

Leave a comment