Lightweight mock implementations of PSR-18, PSR-17 and PSR-7 tailored to simplify unit testing.

Installs: 9 335

Dependents: 8

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0


1.0.1 2024-03-04 21:43 UTC

This package is auto-updated.

Last update: 2024-04-04 22:01:27 UTC


Lightweight mock implementations of a PSR-18 HTTP Client, PSR-17 HTTP Factories and PSR-7 Messages tailored to simplify unit testing.

This is a meta-package that includes all of the PSR Mock utility suite's HTTP packages.

This suite is largely intended for inclusion in libraries like SDKs that consume PSRs without requiring hard dependencies on specific libraries.


  • PHP 8.1+
  • Composer 2.0+


composer require psr-mock/http


Usage instructions for each discovery library can be found at the links below:


Contributions are welcome! Please create issues and pull requests on the repository for the specific discovery library you're interested in.

As a meta-package, this repository is not intended to accept contributions.

This library is not produced or endorsed by, or otherwise affiliated with, the PHP-FIG.