psr/http-client
PSR-18 interfaces and common code for HTTP clients in PHP. This package provides the standard abstractions (requests, responses, exceptions) for interoperability, not an actual client implementation. Find compatible implementations on Packagist.
guzzlehttp/guzzle). The package itself only provides interfacesExecutives: "This standard minimizes long-term costs by decoupling our HTTP logic from specific vendor implementations. With industry-wide adoption across major PHP frameworks and libraries, it eliminates vendor lock-in risks while ensuring our integrations remain flexible and maintainable with minimal engineering overhead. The MIT license and stable 1.0+ release history guarantee low-risk adoption."
Engineering: "By adopting this PSR-18 interface, we standardize HTTP client contracts across our codebase. This lets us swap implementations (like Guzzle or Symfony) without rewriting integration logic, simplifies testing through interface-based mocking, and ensures compatibility with 90%+ of modern PHP ecosystem tools. It’s a zero-overhead dependency that future-proofs our HTTP interactions while reducing maintenance burden."
How can I help you explore Laravel packages today?