2017 © Pedro Peláez
 

library events

Simple PHP events

image

openclerk/events

Simple PHP events

  • Wednesday, April 1, 2015
  • by soundasleep
  • Repository
  • 1 Watchers
  • 0 Stars
  • 279 Installations
  • PHP
  • 10 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

openclerk/events Build Status

A library for registering event handlers and triggering events, live on CryptFolio., (*1)

Installing

Include openclerk/events as a requirement in your project composer.json, and run composer update to install it into your project:, (*2)

{
  "require": {
    "openclerk/events": "dev-master"
  }
}

Using

Add a handler for an event type:, (*3)

Events::on('my_event', function($data) {
  echo "one = " . $data['one'];
});

Trigger an event with custom event data:, (*4)

Events::trigger('my_event', array('one' => 'two'));

Unbind handlers as necessary:, (*5)

$handle = Events::on('my_event', array($object, 'callback'));
// ...
Events::unbind($handle);

The Versions

01/04 2015

dev-master

9999999-dev

Simple PHP events

  Sources   Download

The Development Requires

01/04 2015

0.2.0

0.2.0.0

Simple PHP events

  Sources   Download

The Development Requires

16/12 2014

0.1.0

0.1.0.0

  Sources   Download