eventmanager / eventmanager
PHP Event Manager
1.0
2014-02-28 19:03 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-09-10 02:05:46 UTC
README
PHP Event Manager
A simple event manager for event driven applications.
Example Usage
<?php // registering events $em = EventManager::getInstance(); $em->on('some-event', function(){ echo 'some-event triggered'; }, 1); $em->on('some-event', function(){ echo 'another handler'; }, 2); // emitting events $em->emit('some-event', array('somedata')); ?>