2017 © Pedro Peláez
 

library event

Event Component provides a versatile tool to manage events in your app.

image

flextype-components/event

Event Component provides a versatile tool to manage events in your app.

  • Thursday, May 31, 2018
  • by Awilum
  • Repository
  • 1 Watchers
  • 0 Stars
  • 90 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 61 % Grown

The README.md

Event Component

versionMIT License, (*1)

Event Component provides a versatile tool to manage events in your app., (*2)

Installation

composer require flextype-components/event

Usage

use Flextype\Component\Event\Event;

Add new listeners, (*3)

Event::addListener('event_name', function() { echo 'Test Event 1'; }, 1);
Event::addListener('event_name', function() { echo 'Test Event 2'; }, 2);

Remove all listeners for current event., (*4)

Event::removeAllListeners('event_name');

Check is listeners exists for current event., (*5)

if (Event::hasListeners('event_name')) {
    // do something...
}

Dispatch all listeners of the given event., (*6)

Event::dispatch('event_name');

Get listeners array, (*7)

$listeners = Event::getListeners();

License

See LICENSE, (*8)

The Versions

31/05 2018

dev-master

9999999-dev https://github.com/flextype-components/event

Event Component provides a versatile tool to manage events in your app.

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

php events

31/05 2018

v1.0.4

1.0.4.0 https://github.com/flextype-components/event

Event Component provides a versatile tool to manage events in your app.

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

php events

13/05 2018

v1.0.3

1.0.3.0 https://github.com/flextype-components/event

Event Component provides a versatile tool to manage events in your app.

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

php events

27/04 2018

v1.0.2

1.0.2.0 https://github.com/flextype-components/event

Event Component provides a versatile tool to manage events in your app.

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

php events

26/04 2018

v1.0.1

1.0.1.0 https://github.com/flextype-components/event

Event Component provides a versatile tool to manage events in your app.

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

php events

26/04 2018

v1.0.0

1.0.0.0 https://github.com/flextype-components/event

Event Component provides a versatile tool to manage events in your app.

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

php events