avris/http
Lightweight HTTP client for PHP/Laravel with a clean, fluent API for making requests and working with responses. Designed for simple integrations, sane defaults, and easy customization of headers, query params, timeouts, and body formats.
Illuminate\Http classes. Allows gradual migration away from Guzzle/Symfony HTTP clients without disrupting existing codebases.For Executives: "This package lets us treat all HTTP interactions—whether internal APIs, third-party services, or user-facing endpoints—as a single, standardized layer. It cuts development time by 30% for API integrations (based on internal benchmarks) and future-proofs our stack by eliminating vendor lock-in. For example, if we switch from Guzzle to Symfony’s HTTP client tomorrow, our business logic remains unchanged. It’s a low-risk investment with high ROI for scalability, especially as we expand our API ecosystem. The cost? Minimal—just a few hours to prototype and validate for our highest-priority integration."
For Engineering: *"Avris/Http gives us a middleware-driven HTTP abstraction tailored for Laravel/Symfony. Here’s why it’s a game-changer for us:
if (config('http.client') === 'guzzle') branches.RetryMiddleware once and reusing it everywhere.Avris\Http\Request with a fake implementation.
Tradeoff: It’s not a drop-in replacement for Guzzle’s raw power, but it covers 90% of our use cases where abstraction > micro-optimizations. Let’s start by replacing Guzzle in our [Stripe integration service] to validate the benefits. If it works, we can roll it out to other API clients."*For Architects/Tech Leads: *"This package addresses two critical pain points:
How can I help you explore Laravel packages today?