Skip to content

ashwinks/php-event-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

php-event-manager

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'));

?>

About

PHP Event Manager

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages