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 2w ago

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 13% 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

2553d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5709900?v=4)[Thomas Nordahl Pedersen](/maintainers/thomasnordahl-dk)[@thomasnordahl-dk](https://github.com/thomasnordahl-dk)

![](https://avatars.githubusercontent.com/u/13201214?v=4)[Bo Andersen](/maintainers/boan-jfm)[@boan-jfm](https://github.com/boan-jfm)

![](https://avatars.githubusercontent.com/u/32329468?v=4)[Jesper Østergaard Jensen](/maintainers/JyskFynskeMedierJoej)[@JyskFynskeMedierJoej](https://github.com/JyskFynskeMedierJoej)

![](https://avatars.githubusercontent.com/u/25659854?v=4)[Michelle Fich](/maintainers/mifich)[@mifich](https://github.com/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

[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35729.6k2](/packages/telnyx-telnyx-php)[laudis/neo4j-php-client

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

185671.3k41](/packages/laudis-neo4j-php-client)[art4/requests-psr18-adapter

Use WordPress/Requests as a PSR-18 HTTP client

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

PHPackages © 2026

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