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

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

cognesy/instructor-http-client
==============================

Polyglot's unified HTTP connectivity layer

v2.7.0(1w ago)04947MITPHPPHP ^8.3

Since Apr 22Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/cognesy/instructor-http-client)[ Packagist](https://packagist.org/packages/cognesy/instructor-http-client)[ RSS](/packages/cognesy-instructor-http-client/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (67)Versions (94)Used By (7)

HTTP Client Package
===================

[](#http-client-package)

Minimal HTTP transport for sync and streaming requests.

Example
-------

[](#example)

```
use Cognesy\Http\Data\HttpRequest;
use Cognesy\Http\HttpClient;

$client = HttpClient::default();

$response = $client->send(new HttpRequest(
    url: 'https://api.example.com/health',
    method: 'GET',
    headers: ['Accept' => 'application/json'],
    body: '',
    options: [],
))->get();

echo $response->statusCode();
```

Docs
----

[](#docs)

- `packages/http-client/docs/1-overview.md`
- `packages/http-client/docs/2-getting-started.md`
- `packages/http-client/docs/3-making-requests.md`
- `packages/http-client/docs/4-handling-responses.md`
- `packages/http-client/docs/5-streaming-responses.md`
- `packages/http-client/docs/10-middleware.md`

Pooling lives in `packages/http-pool`.

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance94

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity69

Established project with proven stability

 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

Every ~5 days

Total

93

Last Release

11d ago

Major Versions

0.17.11 → 1.0-rc12025-06-11

v1.22.0 → v2.0.02026-03-13

PHP version history (2 changes)0.13.9PHP ^8.2

v1.19.0PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/184133?v=4)[Dariusz Debowczyk](/maintainers/ddebowczyk)[@ddebowczyk](https://github.com/ddebowczyk)

---

Top Contributors

[![ddebowczyk](https://avatars.githubusercontent.com/u/184133?v=4)](https://github.com/ddebowczyk "ddebowczyk (152 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25026.8M85](/packages/php-http-cache-plugin)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

85997.3k131](/packages/httpsoft-http-message)

PHPackages © 2026

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