allears / event
There is no license information available for the latest version (dev-master) of this package.
Very very very simple event listener/caller.
dev-master
2013-04-09 14:35 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2024-10-11 23:43:33 UTC
README
Very simple event listener/caller based on http://stackoverflow.com/a/9255855/150062
Subscribing to an event
Event::listen('user.login', function($user)
{
$user->last_login = new DateTime;
$user->save();
});
Firing an event
$event = Event::fire('user.login', array($user));