yiisoft/yii-event
PSR-14 event dispatcher for Yii Framework. Register listeners in DI container config files, bind callables or service methods to events, and dispatch type-safe events through a lightweight, framework-integrated implementation.
Consider it when all of the following hold:
->on() calls through bootstrap code.Look elsewhere when:
symfony/event-dispatcher; framework-agnostic code should depend on psr/event-dispatcher directly rather than on a Yii adapter. Adopting this outside Yii adds a framework-shaped dependency for zero benefit.For executives (one line): A small, free, permissively licensed component that lets our Yii application's modules plug into each other through standard events instead of hard-coded dependencies — low cost, low lock-in, and deliberately small scope.
For engineering leadership:
Recommendation: Adopt only if the platform is Yii 3 and we want extension points now; otherwise take a pass and revisit if we migrate. Treat as a tactical, reversible dependency — no architecture review required, but log it in the dependency register.
How can I help you explore Laravel packages today?