PHPackages                             matricali/http-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. matricali/http-client

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

matricali/http-client
=====================

A wrapper of libcurl that implements PSR-7 HTTP message interface.

0.2.0(6y ago)8504[3 issues](https://github.com/matricali/php-http-client/issues)MITPHPPHP &gt;=5.4.0CI failing

Since Feb 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/matricali/php-http-client)[ Packagist](https://packagist.org/packages/matricali/http-client)[ RSS](/packages/matricali-http-client/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (4)Versions (6)Used By (0)

[![Latest stable release](https://camo.githubusercontent.com/3d530b64f731877187c538938b3f34c9dad5fea12216b4c05a99efda5643a6cd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64796e616d69632f6a736f6e2e7376673f6c6162656c3d737461626c652675726c3d68747470732533412532462532466170692e6769746875622e636f6d2532467265706f732532466d6174726963616c692532467068702d687474702d636c69656e7425324672656c65617365732532466c61746573742671756572793d2532342e6e616d6526636f6c6f72423d626c7565)](https://github.com/matricali/php-http-client/releases/latest)[![Build Status](https://camo.githubusercontent.com/fe5a323057d68fd9181d65f327ba1bf9ee2324251045feb71f4a47587c8ad98d/68747470733a2f2f7472617669732d63692e6f72672f6d6174726963616c692f7068702d687474702d636c69656e742e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/fe5a323057d68fd9181d65f327ba1bf9ee2324251045feb71f4a47587c8ad98d/68747470733a2f2f7472617669732d63692e6f72672f6d6174726963616c692f7068702d687474702d636c69656e742e7376673f6272616e63683d6d6173746572) [![Coverage Status](https://camo.githubusercontent.com/4637b204a9212d353fd974c564a086358b7bc65975a8b6594ca1ae5465eab812/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d6174726963616c692f7068702d687474702d636c69656e742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/matricali/php-http-client?branch=master)[![MIT licensed](https://camo.githubusercontent.com/981441ea5f28ac4a5d0f79dd56b453877a811d4efd89de755f802a651109ff3c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6174726963616c692f7068702d687474702d636c69656e742e737667)](https://matricali.mit-license.org/2017)[![GitHub contributors](https://camo.githubusercontent.com/9e8f332f5b4415cadea268ece40a4372f3d0ea8523ae0a6ee57d16e105091755/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f6d6174726963616c692f7068702d687474702d636c69656e742e737667)](https://github.com/matricali/php-http-client/graphs/contributors)

PSR-7 HTTP Client (cURL)
========================

[](#psr-7-http-client-curl)

Note that this is not an HTTP protocol implementation of its own. It is merely a wrapper of *libcurl* that implements [PSR-7](http://www.php-fig.org/psr/psr-7/) HTTP message interface.

Requirements
------------

[](#requirements)

- PHP 5.4 or newer
- [cURL extension](http://php.net/manual/en/curl.installation.php)

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

[](#installation)

```
composer require matricali/http-client

```

Usage
-----

[](#usage)

##### Sending GET request

[](#sending-get-request)

```
use Matricali\Http\Client;

$client = new Client();
$response = $client->get('http://www.example.com/');

echo $response->getBody();

```

##### Sending POST request

[](#sending-post-request)

```
use Matricali\Http\Client;

$client = new Client();
$payload = '{"name": "John Doe"}';
$response = $client->post('http://www.example.com/', $payload);

echo $response->getBody();

```

Contributing
------------

[](#contributing)

Contributions, issues, pull requests are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md)

License
-------

[](#license)

php-http-client is [MIT licensed](LICENSE.txt).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.4% 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 ~167 days

Total

5

Last Release

2342d ago

Major Versions

0.1.3 → 1.0.0-alpha32018-07-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/9cc2241465209cdb9cc89ebc9d13b0e37e68c1900fda4e742be0a409205d8009?d=identicon)[matricali](/maintainers/matricali)

---

Top Contributors

[![matricali](https://avatars.githubusercontent.com/u/6726829?v=4)](https://github.com/matricali "matricali (25 commits)")[![gpolverini](https://avatars.githubusercontent.com/u/40297299?v=4)](https://github.com/gpolverini "gpolverini (10 commits)")[![dgentilezza](https://avatars.githubusercontent.com/u/2809609?v=4)](https://github.com/dgentilezza "dgentilezza (1 commits)")

---

Tags

http-clienthttp-protocollibcurlphp5php7psr-7wrapperhttpclientcurlpsr7wrapper

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/matricali-http-client/health.svg)

```
[![Health](https://phpackages.com/badges/matricali-http-client/health.svg)](https://phpackages.com/packages/matricali-http-client)
```

###  Alternatives

[swlib/saber

Swoole coroutine HTTP client

985145.0k27](/packages/swlib-saber)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[pdeans/http

PSR-7 cURL HTTP client with support for PSR-17 HTTP factories.

1466.2k3](/packages/pdeans-http)[amphp/http-client-guzzle-adapter

Guzzle adapter for Amp's HTTP client.

1523.6k1](/packages/amphp-http-client-guzzle-adapter)[sunrise/http-client-curl

A simple cURL client implementing PSR-18.

187.5k](/packages/sunrise-http-client-curl)

PHPackages © 2026

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