system/events

Events system for events dispatch control

1.0.3 2024-06-04 16:43 UTC

This package is auto-updated.

Last update: 2024-12-04 17:54:58 UTC


README

Extend Dispatcher class to add events support to your objects.

Attach event handlers with

$object->on('event_name', <handler in callable format>)

Execute handlers with

$object->trigger('event_name', $event)

You can also detach event by using

$object->off('event_name', <handler>)

PHP System Event engine