psr-mock/http-factory-implementation
Lightweight PSR-17/PSR-7 HTTP factory/message mock implementation for PHP 8.1+. Built for SDKs and libraries to test against PSR interfaces without hard deps, with strict PSR compliance and helpful debugging API.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| psr-mock/http-message-implementation | 0.90 | Lightweight PSR-7 HTTP message implementation mock for testing libraries and SDKs without hard dependencies. Strictly follows PSR behavior and includes a developer-friendly API to debug and fix failing tests faster. For dev use only (PHP 8.1+). | 0 | 0 | 1 | 4K | 0 | 0.6 | 49.0 | MIT | 2 years ago | |
| psr-mock/http | 0.89 | psr-mock/http is a tiny PHP package for mocking PSR-7 HTTP messages in tests. Create predictable request/response objects without a full HTTP client, helping you unit test middleware, clients, and services with minimal setup. | 1 | 1 | 0 | 1K | 0 | 0.6 | 39.5 | MIT | 2 years ago | |
| php-http/psr7-integration-tests | 0.89 | A PHPUnit-based integration test suite for PSR-7 HTTP message implementations. It verifies requests, responses, streams, URIs, and headers against the PSR-7 specification, helping libraries like Guzzle, Laminas, Slim, and Nyholm ensure compliance. | 41 | 42 | 23 | 3K | 1 | 22.8 | 30.1 | MIT | 2 weeks ago | |
| psr-mock/http-client-implementation | 0.89 | Tiny PSR-18 HTTP client implementation intended for mocking and testing. Provides a simple client you can plug into PSR-7/PSR-17 workflows to return predefined responses without real network calls. | 1 | 1 | 0 | 3K | 0 | 0.6 | 44.8 | MIT | 2 years ago | |
| loophp/psr17 | 0.89 | loophp/psr17 provides a PSR-17 HTTP message factory implementation for PHP, helping you create PSR-7 requests, responses, streams, URIs, and uploaded files in a standards-compliant way. Suitable for libraries and middleware needing PSR factories. | 1 | 1 | 0 | 8K | 1 | 3.5 | 54.2 | MIT | 3 years ago | |
| psr/http-client | 0.89 | PSR-18 interfaces and common code for HTTP clients in PHP. This package provides the standard abstractions (requests, responses, exceptions) for interoperability, not an actual client implementation. Find compatible implementations on Packagist. | 1,717 | 1,728 | 17 | 29M | 0 | 11.2 | 55.3 | MIT | 3 years ago | |
| http-interop/http-factory-tests | 0.88 | Unit tests for HTTP Factory implementations. Add test suite config to phpunit.xml and define factory class constants, then validate your PSR-17 request, response, server request, stream, uploaded file, and URI factories. | 11 | 12 | 8 | 20K | 0 | 20.1 | 51.7 | MIT | 1 month ago | |
| php-http/client-integration-tests | 0.88 | Integration test suite for PHP HTTP clients and adapters. Provides a shared test server and PHPUnit testsuite so you can verify that your client correctly implements the PSR-18 and HTTPlug contracts against real HTTP requests. | 16 | 17 | 10 | 555 | 1 | 19.6 | 23.7 | MIT | 4 months ago | |
| pdeans/http | 0.88 | Lightweight PSR-7 cURL HTTP client with PSR-17 factory support, built on Laminas Diactoros. Configure via curl options and use helper methods for GET/POST/PUT/PATCH/DELETE/HEAD/TRACE with headers and optional body streams/resources. | 14 | 14 | 2 | 109 | 0 | 2.5 | 12.7 | NOASSERTION | 1 year ago | |
| psr/http-message | 0.88 | PSR-7 HTTP message interfaces for PHP (Request/Response, Streams, URIs, UploadedFiles). Defines common contracts only—no concrete implementation. Ideal for framework-agnostic middleware and libraries needing interoperable HTTP message types. | 7,026 | 7,116 | 185 | 22M | 0 | 37.7 | 56.3 | MIT | 3 years ago | |
| psr-discovery/http-factory-implementations | 0.87 | Discovers a PSR-17 HTTP factory at runtime by scanning for well-known implementations and returning the first available instance. Ideal for libraries/SDKs that want PSR-17 support without hard dependencies or user configuration. PHP 8.2+. | 7 | 7 | 3 | 517K | 0 | 1.7 | 55.3 | MIT | 1 year ago | |
| symfony/psr-http-message-bridge | 0.87 | Symfony PSR-7 Bridge integrates PSR-7 HTTP messages with Symfony's HttpFoundation, letting you convert requests and responses between the two in either direction. Useful for middleware and libraries built on PSR-7. | 1,293 | 1,299 | 56 | 16M | 0 | 38.6 | 65.0 | MIT | 3 days ago | |
| psr/http-factory | 0.87 | PSR-17 HTTP message factory interfaces for creating requests, responses, streams, URIs, and uploaded files. This package provides only the standard interfaces (no implementation). Find compatible implementations on Packagist. | 1,888 | 1,896 | 27 | 21M | 0 | 10.9 | 55.3 | MIT | 2 years ago | |
| php-http/httplug-bundle | 0.87 | — | 390 | 391 | 50 | 301K | 5 | 23.4 | 44.3 | MIT | 6 months ago | |
| psx/http | 0.87 | PSX HTTP is a lightweight PHP HTTP component for handling requests and responses, including PSR-7-style message abstractions and utilities for building HTTP-aware applications. It fits the PSX framework ecosystem and can be used standalone for routing-adjacent request/response work. | 3 | 3 | 2 | 5K | 0 | 0.1 | 42.6 | Apache-2.0 | — | |
| php-http/mock-client | 0.87 | Mock HTTP client for HTTPlug/PHP-HTTP. Stores outgoing requests and returns queued responses or throws exceptions instead of making real network calls—ideal for unit tests of HTTP-dependent code. Install via Composer as a dev dependency. | 71 | 75 | 16 | 266K | 0 | 6.0 | 49.3 | MIT | 2 years ago | |
| donatj/mock-webserver | 0.87 | Lightweight PHP mock web server for tests and local development. Spin up an HTTP server on a random port, enqueue canned responses, inspect received requests, and simulate endpoints reliably. Handy for integration tests without external services. | 141 | 142 | 22 | 72K | 5 | 17.6 | 42.3 | MIT | 8 months ago | |
| guzzlehttp/psr7 | 0.87 | PSR-7 HTTP message implementation for PHP: request, response, URI, uploaded file, and stream objects compatible with Guzzle and any PSR-7 library. Create or inspect messages without sending requests; includes factories and helpers. | 7,929 | 7,994 | 28 | 31M | 3 | 60.7 | 58.7 | MIT | 2 weeks ago | |
| phrity/http | 0.86 | Phrity Http provides small PSR-friendly utilities for HTTP in PHP. Includes an HttpFactory wrapper that combines PSR-17 factories (or auto-configures from a single implementation) and a Serializer that converts PSR-7 requests/responses/messages to raw HTTP strings. | 0 | 0 | 0 | 212K | 0 | 4.6 | 57.1 | MIT | 10 months ago | |
| http-interop/http-factory-diactoros | 0.86 | PSR-17 HTTP factory implementations backed by Zend Diactoros. Create requests, responses, streams, and URIs through the standard HttpFactory interfaces, giving projects a lightweight bridge for standardizing on PSR-17 with Diactoros. | 14 | 14 | 4 | 423 | 0 | 0.5 | 20.2 | MIT | 8 years ago |
How can I help you explore Laravel packages today?