https://github.com/sb15/php-curl-client
Simple PHP cUrl client
https://github.com/sb15/php-curl-client
curl httpclient
Last synced: about 2 months ago
JSON representation
Simple PHP cUrl client
- Host: GitHub
- URL: https://github.com/sb15/php-curl-client
- Owner: sb15
- License: mit
- Created: 2019-04-15T20:16:44.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T08:41:05.000Z (about 3 years ago)
- Last Synced: 2025-10-21T11:59:23.207Z (4 months ago)
- Topics: curl, httpclient
- Language: PHP
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PHP cUrl client
===============
[](https://github.com/sb15/php-curl-client/releases)
[](https://github.com/sb15/php-curl-client/actions?query=workflow%3A%22Main+workflow%22)
[](https://packagist.org/packages/sb15/php-curl-client)
[](https://github.com/sb15/php-curl-client/LICENSE)

```php
$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
```bash
composer require sb15/php-curl-client
```