vesic / php-curl
There is no license information available for the latest version (0.0.3) of this package.
php curl class wrapper
0.0.3
2017-05-15 13:17 UTC
Requires
- phpunit/phpunit: ^6.1
This package is not auto-updated.
Last update: 2025-06-08 06:08:51 UTC
README
PHP curl class wrapper
Installation
composer require vesic/php-curl
Usage
use \Vesic\Curl\Curl;
$curl = Curl::getCurlObject();
$curl = Curl::getCurlObject('http://www.example.com');
$curl->setUrl('http://www.example.com');
$curl->setOption('url', 'https://jsonplaceholder.typicode.com/users/1');
$curl->setOptionsArray(['url'=>'https://jsonplaceholder.typicode.com/users/1', 'file'=>'json.txt']);
$response = $curl->exec(false); // write to the stdout