2017 © Pedro Peláez
 

library event

FastD Event

image

fastd/event

FastD Event

  • Thursday, November 24, 2016
  • by JanHuang
  • Repository
  • 1 Watchers
  • 2 Stars
  • 54 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Event

Latest Stable VersionLatest Unstable VersionLicensecomposer.lock, (*1)

Simple Event and EventManager, (*2)

Requirements

  • PHP >= 5.6

Installation

composer require "fastd/event:1.0.x-dev" -vvv, (*3)

Usage Event

$event = new \FastD\Event\Event('demo', function () {
    return 'demo event';
});

$result = $event->broadcast();

$this->assertEquals(['demo event'], $result);

Usage EventDispatch

$eventDispatch = new \FastD\Event\EventDispatcher();

$eventDispatch->on('demo', new DemoListener());

echo $eventDispatch->trigger('demo');

$this->expectOutputString('handle ok');

PHPUnit

phpunit

License MIT

The Versions

24/11 2016

1.0.x-dev

1.0.9999999.9999999-dev

FastD Event

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Avatar JanHuang

19/11 2016

dev-master

9999999-dev

FastD Event

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Avatar JanHuang

19/11 2016

v1.0.0-rc1

1.0.0.0-RC1

FastD Event

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Avatar JanHuang

19/11 2016

v1.0.0

1.0.0.0

FastD Event

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Avatar JanHuang