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

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

simplon/http
============

HTTP client independent PSR7 implementation

0.0.12(8y ago)04.9k11MITPHPPHP &gt;=7.1

Since Nov 30Pushed 8y agoCompare

[ Source](https://github.com/fightbulc/simplon_http)[ Packagist](https://packagist.org/packages/simplon/http)[ Docs](https://github.com/fightbulc/simplon_http)[ RSS](/packages/simplon-http/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (13)Used By (1)

```
     _                 _               _     _   _
 ___(_)_ __ ___  _ __ | | ___  _ __   | |__ | |_| |_ _ __
/ __| | '_ ` _ \| '_ \| |/ _ \| '_ \  | '_ \| __| __| '_ \
\__ \ | | | | | | |_) | | (_) | | | | | | | | |_| |_| |_) |
|___/_|_| |_| |_| .__/|_|\___/|_| |_| |_| |_|\__|\__| .__/
                |_|                                 |_|
```

Example
=======

[](#example)

```
use Psr\Http\Message\ResponseInterface;
use Simplon\Http\Adapter\GuzzleHttp;
use Simplon\Http\HttpInterface;
use Simplon\Http\Strategies\JsonRequestStrategy;

//
// some class
//

class SomeHttp
{
    /**
     * @var HttpInterface
     */
    private $http;

    /**
     * @param HttpInterface $http
     */
    public function __construct(HttpInterface $http)
    {
        $this->http = $http;
    }

    /**
     * @return ResponseInterface
     * @throws Exception
     * @throws \Http\Client\Exception
     */
    public function register(): ResponseInterface
    {
        $request = $this->http->buildRequest('POST', 'http://someapi.com/1.0/register');
        JsonRequestStrategy::create($request, ['token' => '00RVS2CI7K1S']);

        return $this->http->sendRequest($request);
    }
}

$foo = new SomeHttp(new GuzzleHttp());
$response = $foo->register();

//
// print response
//

var_dump($response->getBody()->getContents());
```

License
=======

[](#license)

Cirrus is freely distributable under the terms of the MIT license.

Copyright (c) 2017 Tino Ehrich ()

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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 ~14 days

Recently: every ~34 days

Total

12

Last Release

2930d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ac00878c8c7a883b6b5cbd697b82838cad15e294e5a52d8c4a173bd664d6b4d?d=identicon)[fightbulc](/maintainers/fightbulc)

---

Tags

httpclientpsr7

### Embed Badge

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

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

###  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)

PHPackages © 2026

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