psr-mock/http-factory-implementation

Lightweight PSR-17 HTTP Factory implementation provider tailored to simplify mocked testing.

Maintainers

👁 evansims

Package info

github.com/psr-mock/http-factory-implementation

pkg:composer/psr-mock/http-factory-implementation

Statistics

Installs: 42 502

Dependents: 5

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.1 2024-03-04 21:52 UTC

MIT fa2235c0116b0a4b3e5a0c49e3dce7612726f1c5

testingmockingpsrpsr-17http-factory-implementation

This package is auto-updated.

Last update: 2026-06-05 06:00:07 UTC


README

Lightweight mocking library for PSR-17 HTTP Factory and PSR-7 HTTP Message implementations, tailor-made to help you create test suites that are easier to write and maintain.

👁 codecov
👁 packagist
👁 status
👁 license

This library is primarily intended for use in libraries like SDKs that consume PSR implementations without requiring hard dependencies on specific libraries. The library mocks a real-world implementation and strictly adheres to PSR specifications, enabling you to create test suites that are easier to write and maintain. The library also exposes a robust developer API to help you debug and fix test failures substantially faster.

This package is part of the PSR Mock suite of mocking libraries.

Requirements

  • PHP 8.1+
  • Composer 2.0+

Installation

composer require --dev psr-mock/http-factory-implementation

Only install this library as a development dependency (--dev). It's not built for use in production environments.

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