sb15/php-curl-client

Php curl client

v1.0.5 2023-01-09 08:40 UTC

This package is auto-updated.

Last update: 2024-11-09 12:21:27 UTC


README

Latest Version Build Status Total Downloads License PHP Versions Supported

$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