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
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| tomb1n0/guzzle-mock-handler | 0.87 | Lightweight mock handler for Guzzle to fake HTTP responses in tests. Queue responses, simulate status codes, headers, and body content, and inspect requests without making real network calls—useful for unit/integration testing of API clients. | 3 | 3 | 2 | 4K | 4 | 1.1 | 42.0 | MIT | — | |
| bneumann/mock-api-bundle | 0.87 | — | 2 | 2 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| psr-mock/http-client-implementation | 0.87 | 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 | |
| blastcloud/guzzler | 0.87 | Guzzler is a lightweight, Laravel-friendly testing helper for Guzzle that lets you fake HTTP requests and assert on what was sent. Define expected requests, return canned responses, and verify methods, URLs, headers, and bodies in your PHP tests without hitting real APIs. | 270 | — | 4 | — | 1 | 1.6 | — | MIT | 1 year ago |
|
| guzzle/guzzle | 0.87 | Guzzle 3.x is a PHP HTTP client and web service framework with a cURL-like API, persistent connections, pooling, parallel requests, service descriptions, and a Symfony2 event/plugin system. End-of-life; use Guzzle 5+ for maintenance. | 152 | 222 | 89 | 290K | 0 | 2.0 | 32.0 | MIT | — | |
| guzzle/client-integration-tests | 0.86 | Integration test suite for Guzzle HTTP client implementations. Provides shared fixtures and tests to verify PSR-7/PSR-18 behavior, compatibility, and edge cases across adapters and transports. Designed for package maintainers validating clients. | 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 | 52K | 0 | 0.5 | 44.2 | — | — | |
| requests/test-server | 0.86 | Minimal PHP HTTP test server used by the Requests for PHP library to run its automated CI test suite. Not intended as a standalone server; install via Composer (requires Composer 2.2+) if needed for local testing. | 2 | 3 | 3 | 408 | 1 | 0.3 | 33.3 | — | — | |
| php-http/client-integration-tests | 0.86 | 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 | |
| guzzle/common | 0.86 | 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 | 39K | 0 | 0.1 | 46.4 | — | — | |
| 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 | 4K | 0 | 0.6 | 49.0 | MIT | 2 years ago | |
| guzzlehttp/guzzle-services | 0.85 | Build SDK-style API clients with service descriptions: map named operations and parameters to HTTP requests and transform responses into result data, instead of hand-writing request serializers for every endpoint. | 254 | 256 | 79 | 200K | 0 | 29.1 | 45.8 | MIT | 2 months ago | |
| jcchavezs/httptest | 0.85 | Spin up a lightweight local HTTP server for integration testing real HTTP calls (e.g., cURL). Define a request handler to assert method/headers/body and craft responses, enabling client- and server-side assertions without mocking HTTP. | 9 | 9 | 1 | 199 | 2 | 1.7 | 18.2 | — | 8 years ago | |
| guzzlehttp/test-server | 0.85 | Guzzle Test Server is a dev-only testing helper that starts a local Node.js HTTP server, letting PHP tests queue responses and inspect received requests for handler and integration tests. | 14 | 14 | 2 | 23K | 0 | 23.4 | 51.4 | MIT | 2 weeks ago | |
| ralphjsmit/laravel-helpers | 0.85 | Handy helpers for Laravel apps, including a Factory base class with resolveRelationship() for complex factory relations and a simple pipe implementation for passing data through sequential classes without closures. Great for cleaner factories and predictable pipelines. | 13 | 13 | 3 | 134K | 0 | 24.5 | 63.9 | MIT | 4 weeks ago | |
| guzzle/plugin | 0.85 | — | 5 | 7 | 0 | 20K | 0 | 0.0 | 48.5 | — | — | |
| php-mock/php-mock-integration | 0.85 | Integration layer for php-mock, making it easy to use PHP function mocks within popular test frameworks. Helps you stub built-in functions like time(), rand(), and file operations in specific namespaces, enabling reliable, isolated unit tests without touching global state. | 14 | 14 | 6 | 374K | 0 | 8.2 | 57.8 | WTFPL | 9 months ago | |
| pestphp/pest-plugin-mock | 0.85 | Pest plugin that integrates Mockery into Pest tests, providing convenient helpers to create, configure, and verify mocks and spies with a simple, Pest-friendly API for unit and feature testing in PHP/Laravel projects. | 17 | 15 | 10 | 9K | 0 | 0.2 | 26.4 | MIT | — | |
| psr-mock/http | 0.85 | 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/mock-client | 0.85 | 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 |
How can I help you explore Laravel packages today?