Weave 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

Http Client Laravel Package

amphp/http-client

A fully asynchronous HTTP/1 and HTTP/2 client for PHP built on Revolt, with no cURL dependency. It supports concurrent requests, connection pooling, redirects, compression, streaming bodies, cookies, and proxies through a composable interceptor API.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature decision: Evaluate an async outbound HTTP layer for Laravel/PHP services where I/O latency, concurrency, and connection reuse materially affect user experience or infrastructure cost.
  • Roadmap fit: Best suited to batch API aggregation, webhook fan-out, third-party data enrichment, multi-service orchestration, and streaming large responses — not standard CRUD request/response flows.
  • Build vs buy: Buy this MIT package rather than build protocol-level async HTTP handling. It provides HTTP/1.1 and HTTP/2, connection pooling, redirects, TLS defaults, streaming bodies, proxy support, interceptors, and HAR logging.
  • Use cases to validate: Concurrent third-party API calls, retrying flaky upstreams via interceptors, HTTP/2 multiplexing, memory-safe large downloads, and diagnostic HAR capture.
  • Product boundary: Treat it as a targeted dependency for long-running workers, CLI commands, or dedicated async services — not as a blanket replacement for Laravel’s default HTTP client in typical FPM request lifecycles.

When to Consider This Package

  • Consider it when outbound HTTP latency dominates, request volume is high, and the product needs concurrency, HTTP/2, connection pooling, streaming, or tighter memory control.
  • Consider it when the runtime is already event-loop oriented or long-running: queue workers, CLI jobs, Amp/Revolt services, or a dedicated async microservice.
  • Consider it when composable interceptors, proxy support, cookie/session support via companion packages, or HAR-based observability are valuable.
  • Look elsewhere for standard Laravel HTTP usage that needs a drop-in Http facade, PSR-18/PSR-7/Guzzle middleware compatibility, or minimal async complexity.
  • Look elsewhere if the team cannot own an event loop, cannot isolate async code from normal Laravel request handling, has low outbound request volume, or requires broad ecosystem adoption and native Laravel integration as procurement criteria.

How to Pitch It (Stakeholders)

  • Executives: This is a targeted performance lever for I/O-heavy integrations. It can reduce wall-clock time and worker capacity needs by running outbound requests concurrently, under a permissive MIT license — but it requires engineering investment and is not a universal HTTP replacement.
  • Engineering: A mature async HTTP client with HTTP/2, pooling, streaming, interceptors, redirects, and HAR logging. Integrate it behind an internal interface, use it in long-running processes first, and prove value with benchmarks before expanding.
  • Recommendation: Adopt as a targeted dependency for specific async outbound workloads; keep Laravel’s default client for ordinary synchronous application flows.
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.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator