react/http
Event-driven, streaming HTTP client and server for ReactPHP. Send many concurrent async HTTP/HTTPS requests, handle redirects/timeouts/auth, and stream request/response bodies. Build plain HTTP or secure HTTPS servers on ReactPHP Socket and EventLoop.
Architecture fit: Poor for standard Laravel applications. ReactPHP's event-driven, non-blocking model conflicts with Laravel's synchronous, blocking request lifecycle. Laravel's ecosystem (e.g., session handling, DB queries, middleware) assumes synchronous execution, making direct integration incompatible without fundamental rewrites. Best suited for isolated microservices or specialized high-concurrency endpoints, not as a drop-in replacement for Laravel's HTTP layer.
Integration feasibility: Low. Requires replacing Laravel's HTTP server (e.g., Nginx/PHP-FPM) with ReactPHP's event loop, which breaks core Laravel functionality. Existing Laravel packages (e.g., Eloquent, queues) are not async-compatible. Feasible only for greenfield microservices where Laravel isn't used, or for specific non-HTTP tasks (e.g., WebSocket servers), but not for typical Laravel app integration.
Technical risk: High. Key risks include: 1) 0 dependents on Packagist indicating minimal real-world adoption; 2) event loop blocking from synchronous dependencies (e.g., DB queries); 3) session/auth integration complexity; 4) debugging challenges due to async flow vs. Laravel's sync paradigm. Maturity is questionable despite recent release (2024-11-20), with no dependents suggesting unproven stability in production.
Key questions: How to handle synchronous Laravel dependencies (e.g., Eloquent) in async context? Can session/auth mechanisms be adapted without breaking compatibility? What strategy exists for database connection pooling in non-blocking mode? How to monitor and debug event loop failures without blocking the entire service?
Stack fit: Incompatible with standard Laravel
How can I help you explore Laravel packages today?