guzzle/plugin-mock
guzzle/plugin-mock provides a mock plugin for Guzzle, letting you queue predefined responses and simulate HTTP requests during testing. Useful for isolating API clients, reproducing edge cases, and running fast, reliable unit tests without real network calls.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| guzzle/common | 0.88 | guzzle/common provides the shared utility layer used by Guzzle: collections, event dispatching, caching helpers, and other common abstractions that power Guzzle HTTP clients and related packages. Useful when maintaining legacy Guzzle 3-based code. | 16 | 14 | 2 | 49K | 0 | 0.1 | 47.8 | — | — | |
| psr-mock/http-client-implementation | 0.88 | 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 | 2K | 0 | 0.6 | 42.5 | MIT | 2 years ago | |
| guzzle/plugin-log | 0.88 | Adds logging to Guzzle HTTP requests and responses via a plugin/listener. Capture and format request/response headers, bodies, and timing to help debug API calls, trace issues, and record activity to PSR-3 logs or custom handlers. | 2 | 2 | 1 | 193 | 0 | 0.0 | 25.1 | — | — | |
| mcustiel/phiremock-server | 0.87 | PHP HTTP mock/stub server inspired by WireMock. Mock requests by method/headers/URL/body/forms, set responses via REST API, support scenarios, priorities, latency simulation, verification counts, proxying, and loading expectations from JSON files. | 19 | 19 | 6 | 15K | 1 | 19.8 | 45.0 | GPL-3.0 | 4 months ago | |
| guzzlehttp/test-server | 0.86 | — | 14 | 14 | 2 | 38K | 0 | 23.5 | 55.3 | MIT | 2 weeks ago | |
| boson-php/http-static-provider | 0.86 | Laravel/PHP package that provides a static HTTP provider for Boson, useful for serving fixed responses in tests, mocks, or offline scenarios. Simple setup to return predefined status, headers, and body without making real network requests. | 0 | 0 | 0 | 22 | 0 | 0.0 | 18.8 | MIT | — | |
| guzzle/log | 0.86 | — | 3 | 5 | 0 | 1K | 0 | 0.0 | 35.5 | — | — | |
| psr-mock/http | 0.86 | 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 | 38.5 | MIT | 2 years ago | |
| bneumann/mock-api-bundle | 0.86 | — | 2 | 2 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| guzzle/http | 0.86 | Legacy Guzzle HTTP component providing request/response objects, message abstractions, and client utilities for making HTTP calls in PHP. Useful for older Guzzle integrations and compatibility layers; for new projects, prefer modern guzzlehttp/guzzle versions. | 32 | 42 | 9 | 53K | 0 | 0.5 | 44.1 | — | — | |
| php-mock/php-mock | 0.86 | Mock built-in PHP functions like time() or rand() in tests by leveraging PHP’s namespace fallback: define namespaced replacements for unqualified calls. Works in non-global namespaces; supports common test frameworks via integrations (e.g., PHPUnit). | 370 | 374 | 20 | 494K | 3 | 18.9 | 47.6 | WTFPL | 6 months ago | |
| mcustiel/phiremock | 0.86 | — | 150 | 153 | 15 | 8K | 1 | 10.3 | 23.9 | GPL-3.0 | 5 years ago | |
| mockery/mockery | 0.86 | Mockery is a flexible PHP mock object framework for unit testing with PHPUnit, PHPSpec, and more. It provides a readable DSL to define expectations and interactions, integrates cleanly with PHPUnit, and can be used alongside PHPUnit’s own mocking tools. | 10,726 | 10,811 | 466 | 10M | 106 | 68.0 | 62.4 | BSD-3-Clause | 2 years ago | |
| psr-mock/http-message-implementation | 0.85 | 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 | 2K | 0 | 0.6 | 46.8 | MIT | 2 years ago | |
| polishsymfonycommunity/symfony-mocker-container | 0.85 | — | 144 | 144 | 10 | 53K | 1 | 2.9 | 35.4 | — | 3 years ago | |
| mcustiel/phiremock-client | 0.85 | PHP client for Phiremock Server with a fluent API to define HTTP expectations, manage scenarios, and reset server state. Works with Guzzle 6 by default, or any PSR-18 HTTP client by overriding the factory for custom connections. | 16 | 16 | 9 | 11K | 1 | 18.5 | 44.4 | GPL-3.0 | 4 months ago | |
| graham-campbell/guzzle-factory | 0.85 | Simple factory for creating Guzzle HTTP clients with sensible defaults. One-liner client creation via GuzzleFactory::make(), with optional config like base_uri. Supports PHP 7.4–8.5 and integrates cleanly in modern PHP/Laravel apps. | 92 | 94 | 4 | 229K | 0 | 26.0 | 53.7 | MIT | 2 months ago | |
| guzzle/parser | 0.85 | guzzle/parser provides lightweight message parsing utilities for Guzzle, helping you parse HTTP request/response messages, headers, and related components. Useful when working with raw HTTP strings or building tooling around Guzzle’s message format. | 21 | 18 | 2 | 51K | 0 | 0.2 | 46.4 | — | — | |
| imanghafoori/eloquent-mockery | 0.84 | — | 127 | 127 | 20 | 714 | 4 | 2.7 | 12.8 | MIT | 2 years ago | |
| psr-mock/http-factory-implementation | 0.84 | 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. | 0 | 0 | 0 | 2K | 0 | 0.6 | 46.7 | MIT | 2 years ago |
How can I help you explore Laravel packages today?