PHPackages                             athlon1600/php-curl-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. athlon1600/php-curl-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

athlon1600/php-curl-client
==========================

Simple PHP cURL Client

v1.3.0(4mo ago)13112.2k↓30.7%83MITPHPPHP ^7.3|^8.0CI passing

Since Jan 10Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/Athlon1600/php-curl-client)[ Packagist](https://packagist.org/packages/athlon1600/php-curl-client)[ RSS](/packages/athlon1600-php-curl-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (8)Used By (3)

[![CI](https://github.com/Athlon1600/php-curl-client/actions/workflows/ci.yml/badge.svg)](https://github.com/Athlon1600/php-curl-client/actions/workflows/ci.yml)[![PHP Version](https://camo.githubusercontent.com/5513709ce460947f181bfdd165bc84cf5b43ce618b820a668d2b2ab62034e79a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6174686c6f6e313630302f7068702d6375726c2d636c69656e74)](https://camo.githubusercontent.com/5513709ce460947f181bfdd165bc84cf5b43ce618b820a668d2b2ab62034e79a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6174686c6f6e313630302f7068702d6375726c2d636c69656e74)[![GitHub License](https://camo.githubusercontent.com/1a630dfd3928b71fa6c814736c87c227748e847e4af6b64328c63c8c8b512a02/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6174686c6f6e313630302f7068702d6375726c2d636c69656e74)](https://camo.githubusercontent.com/1a630dfd3928b71fa6c814736c87c227748e847e4af6b64328c63c8c8b512a02/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6174686c6f6e313630302f7068702d6375726c2d636c69656e74)[![](https://camo.githubusercontent.com/eb191c8c0d4e530191e1d145b26c75628cb4ffda52b9b1f3a3937b7b611f596c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f4174686c6f6e313630302f7068702d6375726c2d636c69656e742e737667)](https://camo.githubusercontent.com/eb191c8c0d4e530191e1d145b26c75628cb4ffda52b9b1f3a3937b7b611f596c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f4174686c6f6e313630302f7068702d6375726c2d636c69656e742e737667)[![Packagist Downloads (custom server)](https://camo.githubusercontent.com/258eb51d02d635ffc8f4e2906c7eddd712da37d9216096abef7dc491dd3f9188/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f4174686c6f6e313630302f7068702d6375726c2d636c69656e74)](https://camo.githubusercontent.com/258eb51d02d635ffc8f4e2906c7eddd712da37d9216096abef7dc491dd3f9188/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f4174686c6f6e313630302f7068702d6375726c2d636c69656e74)

PHP Curl Client
===============

[](#php-curl-client)

Very simple curl client. Easy to use and extend to make it into your own custom HTTP client.

✔️ Supports PHP from version 7.3 to 8.4

Installation
------------

[](#installation)

```
composer require athlon1600/php-curl-client "^1.0"
```

Examples
--------

[](#examples)

```
use Curl\Client;

$client = new Client();

// returns standardized Response object no matter what
$response = $client->get('https://stackoverflow.com');

// 200
$status = $response->status;

// HTML content
$body = $response->body;

// curl_error() OR null
$error = $response->error;

// CurlInfo instance
$info = $response->info;
```

**Update:** `$response->info` now returns an object that will have an auto-complete on your IDE.

[![](etc/curl-info-ide-autocomplete.gif)](etc/curl-info-ide-autocomplete.gif);

Works with POST requests too:

```
$client->post('http://httpbin.org/post', ['username' => 'bob', 'password' => 'test']);
```

or you can issue a completely customized request:

```
$client->request('GET', 'https://www.whatismyip.com/', null, [
    'User-Agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X)'
], [
    CURLOPT_PROXY => '127.0.0.1:8080',
    CURLOPT_TIMEOUT => 10
]);
```

TODO
----

[](#todo)

- make PSR-7 and PSR-18 compatible

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance77

Regular maintenance activity

Popularity41

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 96.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~366 days

Recently: every ~517 days

Total

7

Last Release

124d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1063088?v=4)[Athlon1600](/maintainers/Athlon1600)[@Athlon1600](https://github.com/Athlon1600)

---

Top Contributors

[![Athlon1600](https://avatars.githubusercontent.com/u/1063088?v=4)](https://github.com/Athlon1600 "Athlon1600 (31 commits)")[![kristapsk](https://avatars.githubusercontent.com/u/4500994?v=4)](https://github.com/kristapsk "kristapsk (1 commits)")

---

Tags

curlext-curlhttphttp-clientphp-curlphp-curl-librarycurlhttp clientphp-curlphp curl client

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/athlon1600-php-curl-client/health.svg)

```
[![Health](https://phpackages.com/badges/athlon1600-php-curl-client/health.svg)](https://phpackages.com/packages/athlon1600-php-curl-client)
```

###  Alternatives

[kriswallsmith/buzz

Lightweight HTTP client

2.0k31.3M443](/packages/kriswallsmith-buzz)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)[eightpoints/guzzle-bundle

Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony. Comes with easy and powerful configuration options and optional plugins.

45912.1M55](/packages/eightpoints-guzzle-bundle)[aplus/http-client

Aplus Framework HTTP Client Library

2161.6M1](/packages/aplus-http-client)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.0k](/packages/ismaeltoe-osms)[zoonman/pixabay-php-api

PixabayClient is a PHP HTTP client library to access Pixabay's API

3354.7k](/packages/zoonman-pixabay-php-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
