Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Guzzle Mock Handler Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

This package is largely redundant for Laravel projects due to Laravel's built-in HTTP mocking capabilities via Http::fake(), which provides robust, native support for simulating API responses without external dependencies. As a PM, this reinforces the decision to prioritize framework-native solutions over third-party packages for testing infrastructure, reducing technical debt and avoiding maintenance risks associated with low-adoption tools. It also validates the "build vs. buy" strategy for testing utilities—Laravel’s native features are sufficient for 95%+ of HTTP testing scenarios, eliminating the need for additional dependencies.

When to Consider This Package

Avoid this package entirely for Laravel projects. Its extremely low adoption (3 stars, low score) and lack of repository details signal poor maintenance and community support. Laravel’s built-in Http::fake() already handles Guzzle-based mocking seamlessly, making this package unnecessary. Only consider it in non-Laravel Guzzle-only projects where native Laravel tools aren’t applicable, but even then, alternatives like guzzle/guzzle-mock or PHPUnit’s built-in mocking are better-supported options. For Laravel, this package adds no value and introduces risk.

How to Pitch It (Stakeholders)

Executives: "Laravel’s native HTTP mocking tools (e.g., Http::fake()) already provide enterprise-grade testing capabilities without additional dependencies. Adopting

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4