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
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| bovigo/callmap | 0.84 | Stub and mock PHP method and function calls via a callmap. Define fixed returns, callbacks, consecutive results, or thrown exceptions, then verify invocations and arguments. Works with any unit test framework; argument checks via bovigo/assert or PHPUnit. | 8 | 8 | 4 | 464 | 0 | 29.3 | 28.0 | BSD-3-Clause | 4 months 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,838 | 1,882 | 301 | 160K | 75 | 37.0 | 51.6 | 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 | — | |
| phpunit/phpunit-mock-objects | 0.79 | Default mock object library for PHPUnit. Create test doubles (mocks, stubs, spies) to isolate units under test, define expectations, control method returns, and verify interactions. Designed for PHPUnit projects and compatible with PHP 7.1+. | 4,938 | 5,056 | 153 | 542K | 0 | 25.2 | 33.2 | NOASSERTION | 12 years ago | |
| guzzlehttp/guzzle | 0.79 | Guzzle is a PHP HTTP client for sending sync or async requests with an easy API. Built on PSR-7 and PSR-18, supports middleware, cookies, streaming uploads/downloads, and JSON. Transport-agnostic for flexible integrations. | 23,450 | 24,300 | 2,382 | 16M | 16 | 75.5 | 60.2 | MIT | 7 months ago | |
| http-interop/http-factory-guzzle | 0.79 | — | 581 | 582 | 9 | 3M | 0 | 24.4 | 59.6 | MIT | 4 years ago | |
| php-mock/php-mock | 0.75 | 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). | 369 | 374 | 20 | 545K | 3 | 28.0 | 51.9 | WTFPL | 2 months ago | |
| php-http/mock-client | 0.75 | 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 | 234K | 0 | 26.1 | 57.1 | MIT | 1 year ago | |
| php-mock/php-mock-mockery | 0.71 | 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 | 64K | 2 | 21.9 | 52.1 | WTFPL | 1 year ago | |
| php-mock/php-mock-integration | 0.67 | 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 | 306K | 0 | 23.0 | 65.0 | WTFPL | 2 months ago | |
| mockery/mockery | 0.66 | 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,725 | 10,812 | 463 | 9M | 104 | 87.9 | 82.1 | BSD-3-Clause | 1 year ago |
How can I help you explore Laravel packages today?