2017 © Pedro Peláez
 

library event-dispatcher

Aztech Event Dispatcher

image

aztech/event-dispatcher

Aztech Event Dispatcher

  • Tuesday, February 24, 2015
  • by thibaud-evaneos
  • Repository
  • 2 Watchers
  • 0 Stars
  • 1,528 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

event-dispatcher

Build status

Build Status Scrutinizer Code Quality Code Coverage HHVM Status, (*1)

Stability

Latest Stable Version Latest Unstable Version, (*2)

License

MIT, (*3)

This library is released under the MIT license. Please see attached LICENSE file., (*4)

Installation

Via Composer

Composer is the only supported way of installing aztech/event-dispatcher . Don't know Composer yet ? Read more about it., (*5)

$ composer require "aztech/event-dispatcher":"~1", (*6)

Autoloading

Add the following code to your bootstrap file :, (*7)

require_once 'vendor/autoload.php';

Usage

As the name implies, event-dispatcher is a simple event dispatching library. Rather than a long speech, a simple example :, (*8)

class MyEvent implements \Aztech\Events\Event
{
    function getCategory() {
        return 'my.event';
    }

    function getId() {
        return 1;
    }
}

$dispatcher = new \Aztech\Events\EventDispatcher();
$subscriber = new \Aztech\Events\Callback(function (\Aztech\Events\Event $event) {
    echo 'I just received an event : ' . $event->getCategory() . PHP_EOL;
});

$dispatcher->addListener('my.#', $subscriber);
$dispatcher->dispatch(new MyEvent());

Contributing

All contributions are welcome, via issues and pull requests., (*9)

When submitting a pull request, please ensure that your changes validate against the test suite and style checkers by running make test. All tests must pass (make must return 0)., (*10)

The Versions

24/02 2015

dev-master

9999999-dev

Aztech Event Dispatcher

  Sources   Download

MIT

The Requires

 

The Development Requires

24/02 2015
23/02 2015
13/02 2015
29/10 2014

dev-test-contribute

dev-test-contribute

Aztech Event Dispatcher

  Sources   Download

MIT

The Requires

 

The Development Requires

29/10 2014
29/10 2014
26/08 2014

v1.1.0

1.1.0.0

Aztech Event Dispatcher

  Sources   Download

The Requires

 

The Development Requires

16/08 2014

1.0.1

1.0.1.0

Aztech Event Dispatcher

  Sources   Download

The Requires

 

The Development Requires

15/08 2014

1.0.0

1.0.0.0

Aztech Event Dispatcher

  Sources   Download

The Requires

 

The Development Requires