eventmanager/eventmanager

PHP Event Manager

Installs: 25

Dependents: 0

Stars: 5

Watchers: 1

Forks: 3

Language: PHP

1.0 2014-02-28 19:03 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'));

?>