php-http/react-adapter
ReactPHP adapter for the PHP-HTTP httplug abstraction. It lets you send asynchronous, non-blocking HTTP requests through ReactPHP's event loop using the standard httplug and PSR-7 interfaces, so existing client code keeps working unchanged.
Http\Client\HttpClient; this keeps them portable across transports and reduces lock-in to Guzzle.Consider it when:
Look elsewhere when:
If adopted: pin the version, wrap it behind your own client interface, and keep a synchronous fallback.
Executive summary: a small, free (MIT) adapter that lets our PHP services make outbound HTTP calls concurrently on an event loop without rewriting existing client code or replacing SDKs. The business value is backend latency and throughput — fewer serial round-trips, cheaper fan-out — not a customer-facing feature. Cost is low and contained: one dependency, no license fee, no infrastructure. Risk is maintenance: the package is small and quiet (last release 2022, roughly 19 stars), so we should treat it as thin glue we're prepared to patch or replace, isolate it behind our own client interface, and avoid making it load-bearing for the platform. Recommendation: approve for a scoped pilot in one event-loop service, measure p95 and concurrency gains, and revisit if we standardize on Swoole/amphp or if maintenance lapses.
For engineering: it bridges HTTPlug to react/http, so PSR-18/HTTPlug-consuming code gets an async transport; avoid blocking calls inside the loop, handle promise rejection paths explicitly, and load-test before rollout.
How can I help you explore Laravel packages today?