tomb1n0/guzzle-mock-handler
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| polishsymfonycommunity/symfony2-mocker-extension | 0.84 | Behat extension for Symfony2 that lets you mock services in the dependency injection container during tests. Built on Mockery and SymfonyMockerContainer. Consider it a hack and use sparingly; alternative: TestDoubleBundle. | 26 | 26 | 7 | 208 | 0 | 0.6 | 13.0 | MIT | 10 years ago | |
| jcchavezs/httptest | 0.84 | 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 | 663 | 2 | 1.7 | 23.7 | — | 8 years ago | |
| belsym/test-bundle | 0.84 | — | 1 | 1 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| guzzle/common | 0.84 | 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 | — | — | |
| brunopicci/call-rest-api | 0.83 | — | 0 | 0 | 0 | 16 | 0 | 0.0 | 17.0 | MIT | — | |
| psr-mock/http | 0.83 | 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 | 37.4 | MIT | 2 years ago | |
| nategood/httpful | 0.83 | Chainable PHP HTTP client for making REST requests with minimal boilerplate. Supports JSON/XML parsing, automatic serialization, custom headers, auth, redirects, and file uploads. Includes helpful debugging and response wrappers for quick API integrations. | 1,781 | 1,819 | 299 | 150K | 75 | 36.7 | 51.4 | MIT | — | |
| chaplean/rest-client-bundle | 0.83 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| guzzle/client-integration-tests | 0.83 | 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/plugin-mock | 0.83 | 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. | 3 | 3 | 0 | 3K | 0 | 0.0 | 39.3 | — | — | |
| amranidev/laracombee | 0.82 | Laravel package for the Recombee recommendation API. Manage users, items, and interactions, and fetch personalized recommendations with a Laravel-friendly interface—ideal for e-commerce, media libraries, and marketplaces. Compatible with Laravel 10–12, PHP 8.2+. | 115 | 115 | 9 | 928 | 0 | 21.5 | 15.3 | MIT | 1 month ago | |
| psr-mock/http-client-implementation | 0.81 | 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 | |
| php-http/mock-client | 0.81 | 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 | 17 | 239K | 0 | 6.1 | 48.6 | MIT | 1 year ago | |
| ricardofiorani/guzzle-psr18-adapter | 0.81 | Tiny adapter that lets you use Guzzle as a PSR-18 HTTP client. Bridges PSR-7 requests/responses and promises to the PSR-18 ClientInterface, easing migration to standards-based HTTP without rewriting existing Guzzle integrations. | 14 | 14 | 3 | 3K | 0 | 2.1 | 31.0 | MIT | 4 years ago | |
| boson-php/http-static-provider | 0.80 | 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 | 32 | 0 | 0.0 | 21.0 | MIT | — | |
| php-mock/php-mock-mockery | 0.80 | Integrates php-mock with Mockery to mock PHP built-in functions in tests. Create namespaced function mocks with PHPMockery::mock() and set expectations/returns, then call Mockery::close(). Supports only unqualified calls; define early if needed. | 39 | 39 | 5 | 71K | 2 | 1.2 | 55.3 | WTFPL | 1 year ago | |
| graham-campbell/guzzle-factory | 0.80 | 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. | 91 | 93 | 4 | 173K | 0 | 25.1 | 51.7 | MIT | 2 months ago | |
| php-http/guzzle6-adapter | 0.80 | PSR-7/PSR-18 compatible adapter that lets you use Guzzle 6 as an HTTPlug HTTP client. Provides a bridge for sending requests through Guzzle while working with php-http contracts, useful for libraries that depend on standardized HTTP interfaces. | 1,349 | — | 54 | — | 2 | 4.4 | — | MIT | 5 years ago | |
| csa/guzzle-bundle | 0.80 | — | 250 | 259 | 73 | 41K | 16 | 4.9 | 24.9 | — | 10 years ago | |
| bywulf/guzzle-bundle | 0.79 | — | 0 | 0 | 2 | 30 | 0 | 1.0 | 20.6 | — | 3 years ago |
How can I help you explore Laravel packages today?