Dirthara Events
PSR-14 event dispatching, listener registration, and event publishing with plain PHP objects.
Installation
Requirements and installation of Dirthara Events.
Listening for events
Register listeners on a ListenerProvider, order them by priority, and match parent classes and interfaces.
Dispatching events
Dispatch events synchronously with EventDispatcher, stop propagation, and handle exceptions from listeners.
Publishing events
Publish events as one-way notifications with EventPublisher, and choose between publishing and dispatching.
Deferred publishing
Buffer published events with DeferredEventPublisher and publish them later with an explicit flush.