blastcloud/guzzler
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.
Consider adoption when:
Look elsewhere or supplement when:
Http::fake() and does not need Guzzler’s Guzzle-specific matching.For executives: Guzzler is a low-cost, test-only, MIT-licensed library that improves release confidence for integrations without adding production risk. It helps teams simulate provider failures, reduce flaky CI, and ship integration-dependent features faster.
For engineering: It provides a fluent Guzzle mocking API for matching requests and stubbing responses, with built-in assertions and call history. It replaces bespoke test doubles and makes edge-case coverage practical. It is not a substitute for end-to-end or contract testing.
Recommended next step: Pilot Guzzler on one high-friction integration test suite, measure CI runtime and flake reduction, then decide whether to standardize it for Guzzle-based tests.
How can I help you explore Laravel packages today?