2017 © Pedro Peláez
 

library events-handler

Events Handler for ObjectivePHP

image

objective-php/events-handler

Events Handler for ObjectivePHP

  • Monday, April 9, 2018
  • by gauthier
  • Repository
  • 5 Watchers
  • 0 Stars
  • 19,875 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 12 Versions
  • 14 % Grown

The README.md

Objective PHP / Events Handler Build Status

Library topic

Simple events handler meant to work together with our objective-php/matcher., (*1)

It allows to bind events using patterns as defined in Matcher documentation (using wildcards and alternatives...), (*2)

Concept

Nothing really new here from the events handling point of view. The real specific feature is more related to the way the callbacks are bound to events, thanks to Matcher., (*3)

Usage

Callback binding

Binding a callback to an event is quite straight forward:, (*4)

$eventsHandler = new EventsHandler();
$eventsHandler->bind('event.name', function($event) { 
    echo 'Event ' . $event->getName() . ' was just fired!');
    }
  );

Event triggering

Once again, this is very simple:, (*5)

$eventsHandler->trigger('event.name'); // will echo 'Event event.name was just fired!'

More documentation to come soon!, (*6)

The Versions

09/04 2018

dev-master

9999999-dev https://github.com/objective-php/events-handler

Events Handler for ObjectivePHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

events objective php events handler

09/04 2018

v2.0.0

2.0.0.0 https://github.com/objective-php/events-handler

Events Handler for ObjectivePHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

events objective php events handler

09/10 2017

v1.0.7

1.0.7.0 https://github.com/objective-php/events-handler

Events Handler for ObjectivePHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

events objective php events handler

03/10 2017

v1.0.6

1.0.6.0 https://github.com/objective-php/events-handler

Events Handler for ObjectivePHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

events objective php events handler

02/10 2017

v1.0.5

1.0.5.0 https://github.com/objective-php/events-handler

Events Handler for ObjectivePHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

events objective php events handler

02/10 2017

v1.0.4

1.0.4.0 https://github.com/objective-php/events-handler

Events Handler for ObjectivePHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

events objective php events handler

01/09 2017

v1.0.3

1.0.3.0 https://github.com/objective-php/events-handler

Events Handler for ObjectivePHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

events objective php events handler

06/07 2017

v1.0.2

1.0.2.0 https://github.com/objective-php/events-handler

Events Handler for ObjectivePHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

events objective php events handler

06/05 2016

v1.0.0

1.0.0.0 https://github.com/objective-php/events-handler

Events Handler for ObjectivePHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

events objective php events handler

06/05 2016

v1.0.1

1.0.1.0 https://github.com/objective-php/events-handler

Events Handler for ObjectivePHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

events objective php events handler

14/08 2015

v0.9.1

0.9.1.0 https://github.com/objective-php/events-handler

Events Handler for ObjectivePHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

events objective php events handler

09/08 2015

v0.9.0

0.9.0.0 https://github.com/objective-php/events-handler

Events Handler for ObjectivePHP

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

events objective php events handler