yiisoft/event-dispatcher
PSR-14 event dispatcher for Yii applications with a simple listener API, listener providers, dependency injection support, and extensible configuration. Lightweight and framework-agnostic, it helps decouple components by dispatching events to typed listeners.
Consider it only when:
Look elsewhere when:
psr/event-dispatcher interfaces with a small in-house implementation.Executive summary: This is a small, permissively licensed PSR-14 event dispatcher from the Yii ecosystem. It could support a framework-agnostic eventing standard for shared PHP libraries, but it is not a strategic Laravel dependency. With 73 stars, an unknown repository, and no release since October 2022, it carries maintenance and traceability risk. Recommend approving it only as an isolated, adapter-wrapped dependency for a narrow interoperability use case—not as the core event system for a Laravel product. The safer default is Laravel’s native dispatcher for applications and Symfony’s PSR-14 dispatcher for framework-neutral packages.
Engineering summary: PSR-14 gives us a clean contract and framework portability, but this package is a thin implementation with limited community momentum. Laravel does not natively use PSR-14 for its event system, so adopting this package would mean bridging or replacing Laravel’s dispatcher—high integration cost and low product upside. Use it only behind an internal interface if a specific package must emit PSR-14 events across Yii and other frameworks; otherwise standardize on the framework-native or Symfony implementation.
How can I help you explore Laravel packages today?