sb15 / php-curl-client
Php curl client
Installs: 5 968
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.3
- ext-curl: *
- ext-json: *
Requires (Dev)
- phpunit/phpunit: ^8.1
README
$client = new \Sb\Curl\Client(); $client->setUserAgent('Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0'); $client->setDebug(); $response = $client->get('https://httpbin.org/get'); echo $client->getResponseCode() . "\n"; echo $response . "\n"; echo $client->getTrace() . "\n";
💽 Installing
composer require sb15/php-curl-client