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.
yiisoft/event-dispatcher is a narrow PSR-14 dispatcher and does not supply Laravel service providers, facades, queue integration, or framework lifecycle hooks. Its fit is limited to a deliberate PSR-14 interoperability boundary, especially if a Yii or other PSR-14 dependency must exchange events with Laravel.Illuminate\Contracts\Events\Dispatcher as the application’s primary event backbone. Use yiisoft/event-dispatcher only at the PSR-14 boundary, such as exposing selected domain events to a non-Laravel package or consuming PSR-14 events from a Yii component. Do not replace Laravel events for framework lifecycle, auth, queue, or broadcasting use cases.psr/event-dispatcher version and whether the package’s transitive constraints conflict with Laravel or other dependencies. Since there is no Laravel package auto-discovery, integration wiring and documentation are internal responsibilities.How can I help you explore Laravel packages today?