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

This package is auto-updated.

Last update: 2024-12-12 00:01:08 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));