PHPackages                             mingalevme/psr-http-client-stubs - 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. mingalevme/psr-http-client-stubs

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

mingalevme/psr-http-client-stubs
================================

Some simple PSR HTTP Client helpful stubs and decorators for testing purposes.

2.0.4(3y ago)01531MITPHPPHP ^8.0

Since Dec 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mingalevme/psr-http-client-stubs)[ Packagist](https://packagist.org/packages/mingalevme/psr-http-client-stubs)[ Docs](https://github.com/mingalevme/psr-http-client-stubs)[ RSS](/packages/mingalevme-psr-http-client-stubs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (6)Used By (1)

mingalevme/psr-http-client-stubs
================================

[](#mingalevmepsr-http-client-stubs)

[![quality](https://github.com/mingalevme/psr-http-client-stubs/actions/workflows/quality.yml/badge.svg)](https://github.com/mingalevme/psr-http-client-stubs/actions)[![codecov](https://camo.githubusercontent.com/9e60db67ccb56e1844d2fbb7d97ff18343c1ace3f524d8287e5279c55262b645/68747470733a2f2f636f6465636f762e696f2f67682f6d696e67616c65766d652f7073722d687474702d636c69656e742d73747562732f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d4a656c667244664f6b4a)](https://codecov.io/gh/mingalevme/psr-http-client-stubs)[![version](https://camo.githubusercontent.com/f862503b347e391cb7b297d1625c3beac33f85abfa814953d889f045d7170515/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d696e67616c65766d652f7073722d687474702d636c69656e742d7374756273)](https://packagist.org/packages/mingalevme/psr-http-client-stubs)[![license](https://camo.githubusercontent.com/a09c30e9e7469c9017d94487dc6623db02353f6c39f5cc0cbd1df6566f296c68/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d696e67616c65766d652f7073722d687474702d636c69656e742d7374756273)](https://packagist.org/packages/mingalevme/psr-http-client-stubs)

Some simple PSR HTTP Client helpful stubs and decorators for testing purposes.

Stubs:

- **QueuePsrHttpClientTest**
- **StaticResponseMapPsrHttpClientTest**
- **StaticResponsePsrHttpClient**
- **NullPsrHttpClient**

Decorators:

- **HistoryPsrHttpClientDecorator**

Code quality:

- 100% code coverage
- Psalm at max level
- PHPStan at max level
- PHP CS Fixer

See tests for examples.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

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

Every ~8 days

Total

5

Last Release

1216d ago

Major Versions

1.0.0 → 2.0.02022-12-09

### Community

Maintainers

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

---

Top Contributors

[![mingalevme](https://avatars.githubusercontent.com/u/1725784?v=4)](https://github.com/mingalevme "mingalevme (15 commits)")

---

Tags

psrhttp client

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mingalevme-psr-http-client-stubs/health.svg)

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

###  Alternatives

[psr/http-client

Common interface for HTTP clients

1.7k680.7M2.1k](/packages/psr-http-client)[kriswallsmith/buzz

Lightweight HTTP client

2.0k31.3M440](/packages/kriswallsmith-buzz)[art4/requests-psr18-adapter

Use WordPress/Requests as a PSR-18 HTTP client

153.3k](/packages/art4-requests-psr18-adapter)[simpod/clickhouse-client

PHP ClickHouse Client

19116.7k](/packages/simpod-clickhouse-client)[amphp/http-client-psr7

PSR-7 adapter for Amp's HTTP client.

1454.7k4](/packages/amphp-http-client-psr7)

PHPackages © 2026

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