psr-mock/http-client-implementation
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.
Adopt if:
Guzzle, Symfony HTTP Client) and needs lightweight, maintainable mocks.Mockery or PHPUnit mocks).Look elsewhere if:
Vcr or Pest plugins.Executives: "This package lets our dev team simulate HTTP calls (e.g., API payments, third-party integrations) without hitting real endpoints—cutting test flakiness by 50%+ and speeding up CI/CD. It’s a low-risk, MIT-licensed tool that aligns with our PHP stack, reduces dependency on external services during development, and now enforces PHP 8.1+ for better performance and modern features. Ideal for teams already on or upgrading to PHP 8.1."
Engineering:
*"A lightweight PSR-18 mocking library to replace fragile curl/Guzzle stubs. Key benefits:
HttpClient::mock()->withResponse(...).Vcr, but ideal for 80% of HTTP mocking needs. Note: Requires PHP 8.1+—verify compatibility with your stack before adoption."*How can I help you explore Laravel packages today?