2017 © Pedro Peláez
 

library events

Library to implement event emitting capability

image

gamegos/events

Library to implement event emitting capability

  • Monday, September 19, 2016
  • by sozpinar
  • Repository
  • 3 Watchers
  • 2 Stars
  • 192 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

Events Library for PHP

License Build Status codecov.io, (*1)

Simple library to implement event emitting capability for PHP applications., (*2)

Installation

Install via Composer

Run the following command in the root directory of your project:, (*3)

composer require gamegos/events:*

Basic Usage

$eventManager = new Gamegos\Events\EventManager();
// Attach a callback to an event named 'foo'.
$eventManager->attach(
    'foo',
    function (Gamegos\Events\EventInterface $e) {
        echo sprintf('Handled "%s" event with subject "%s".', $e->getName(), $e->getSubject());
    }
);
// Trigger the 'foo' event with a subject ('bar').
$eventManager->trigger('foo', 'bar');

The above example will output:, (*4)

Handled "foo" event with subject "bar".

The Versions

19/09 2016

dev-master

9999999-dev

Library to implement event emitting capability

  Sources   Download

MIT

The Requires

  • php ~5.5 || 7.0.*

 

The Development Requires

by Safak Ozpinar

events

19/09 2016

0.3.0

0.3.0.0

Library to implement event emitting capability

  Sources   Download

MIT

The Requires

  • php ~5.5 || 7.0.*

 

The Development Requires

by Safak Ozpinar

events

09/09 2016

0.2.0

0.2.0.0

Library to implement event emitting capability

  Sources   Download

MIT

The Requires

  • php ~5.5 || 7.0.*

 

The Development Requires

by Safak Ozpinar

events

24/12 2015

0.1.0

0.1.0.0

Library to implement event emitting capability

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

by Safak Ozpinar

events