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

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

kodus/http-client
=================

Minimalist PSR-18 HTTP Client

1.0.0(6y ago)1161[2 issues](https://github.com/kodus/http-client/issues)MITPHPPHP &gt;7.1

Since Jul 4Pushed 6y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

`kodus/http-client`
===================

[](#kodushttp-client)

Minimalist [PSR-18](https://www.php-fig.org/psr/psr-18/) HTTP Client.

[![PHP Version](https://camo.githubusercontent.com/e6556d680d7fcf917890d04219d10f99ae03b29748d031fba63cb2e2538efeea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372e312532422d626c75652e737667)](https://packagist.org/packages/kodus/http-client)[![Build Status](https://camo.githubusercontent.com/e70c0d44cfe7d2055d14386f767342115a2ef3ea60943a10c8801c915c4d445b/68747470733a2f2f7472617669732d63692e6f72672f6b6f6475732f687474702d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kodus/http-client)[![Code Coverage](https://camo.githubusercontent.com/b5c0c448805673204469eabca43a3be71200e881919c31ec4edb93322ec4fbb2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b6f6475732f687474702d636c69656e742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kodus/http-client/?branch=master)

- No dependencies beyond [PSR-17](https://www.php-fig.org/psr/psr-17/) HTTP Factory implementations
- Streaming response: suitable for fetching large responses.
- Accepts and decodes `gzip` encoded response content.

Note that this client does not follow redirects: PSR-18 doesn't specify - but this is a client, not a browser, and it's designed to be bootstrapped as a service instance: some dependents may need to know the status-code of the actual response; automatically following redirects makes that impossible.

Usage
-----

[](#usage)

Basic example using [`nyholm/psr7`](https://packagist.org/packages/nyholm/psr7):

```
use Kodus\Http\HttpClient;
use Nyholm\Psr7\Factory\Psr17Factory;

// Bootstrap the client:

$http = new Psr17Factory();

$client = new HttpClient($http, $http);

// Perform a request:

$response = $client->sendRequest(
    $http->createRequest("GET", "https://postman-echo.com/get?foo=bar")
);
```

Please refer to [PSR-18 documentation](https://www.php-fig.org/psr/psr-18/) for details.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2503d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec1a54f85a6e46909df4ca4852ada0cc4b1482f7208dfc487d05554087e09cc9?d=identicon)[thomasnordahl-dk](/maintainers/thomasnordahl-dk)

![](https://www.gravatar.com/avatar/9d0432f9ee26cc6265bcf3817d88bf40a4a8669a603785b34946e9c15d7b3451?d=identicon)[boan-jfm](/maintainers/boan-jfm)

![](https://www.gravatar.com/avatar/22799a8c3c482e408f78fd86a999b271f1d5fd2e04b433c6d199f717b3032bb2?d=identicon)[JyskFynskeMedierJoej](/maintainers/JyskFynskeMedierJoej)

![](https://www.gravatar.com/avatar/a974d9ad4b2be14736394ce117f53f83e9186e9cc05002bc004678f0b0587e37?d=identicon)[mifich](/maintainers/mifich)

---

Top Contributors

[![mindplay-dk](https://avatars.githubusercontent.com/u/103348?v=4)](https://github.com/mindplay-dk "mindplay-dk (7 commits)")

---

Tags

archive

### Embed Badge

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

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

###  Alternatives

[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

184616.9k31](/packages/laudis-neo4j-php-client)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[art4/requests-psr18-adapter

Use WordPress/Requests as a PSR-18 HTTP client

153.3k](/packages/art4-requests-psr18-adapter)

PHPackages © 2026

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