react/promise-timer
Add timeouts and sleep delays to ReactPHP promises. Wrap any pending operation to auto-cancel and reject with a TimeoutException if it doesn’t settle in time, or pass through resolve/reject when it does. Lightweight, function-based API.
Adopt when:
Look elsewhere when:
curl/stream_context timeouts suffice)spatie/async or reactphp/event-loop extensions)Executives: "This tiny open-source package ensures our systems stay responsive under load by automatically terminating slow operations – preventing cascading failures and reducing server costs. It’s a proven, zero-maintenance tool that protects customer experience without engineering overhead."
Engineering: "A lightweight, battle-tested ReactPHP utility that adds deterministic timeouts to promises with proper cancellation semantics. Integrates in minutes via Composer, avoids reinventing timeout logic, and handles edge cases like promise cancellation and resource cleanup out-of-the-box. Perfect for async Laravel workers or microservices needing fail-fast behavior."
How can I help you explore Laravel packages today?