hyperf/event
hyperf/event is a lightweight event dispatcher for Hyperf applications. Define events and listeners, dispatch synchronously or via async mechanisms, and keep your domain decoupled. Integrates cleanly with Hyperf’s DI and coroutine-friendly runtime.
EventWebSocket, reducing backend load and eliminating polling.tenant_id routing.Adopt if:
LaravelEventAdapter).Look elsewhere if:
events are more mature).Swoole or RoadRunner).For Executives: "This package lets us unlock real-time features (e.g., live notifications, collaborative tools) without sacrificing Laravel’s ecosystem. By integrating Hyperf’s event system with Laravel, we get 30% faster event processing than traditional queues—ideal for scaling user-facing apps. It’s low-risk (MIT license, active updates) and future-proofs our architecture for microservices. Let’s pilot it for [X high-impact feature] to validate ROI."
For Engineering: *"hyperf/event gives us a drop-in replacement for Laravel events but with Hyperf’s performance:
UserRegistered works out of the box).high → critical) for time-sensitive workflows.For Developers: *"Want to ship real-time features faster? This package lets you:
Event::dispatch(new OrderPlaced())).
Example: Replace Laravel Echo with EventWebSocket for sub-50ms latency on notifications. Start with a non-critical event (e.g., UserLoggedIn) and expand."*How can I help you explore Laravel packages today?