library 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
Event
, (*1)
Simple Event and EventManager, (*2)
Requirements
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
1.0.x-dev
1.0.9999999.9999999-dev
FastD Event
Sources
Download
MIT
The Requires
The Development Requires
by
JanHuang
dev-master
9999999-dev
FastD Event
Sources
Download
MIT
The Requires
The Development Requires
by
JanHuang
v1.0.0-rc1
1.0.0.0-RC1
FastD Event
Sources
Download
MIT
The Requires
The Development Requires
by
JanHuang
v1.0.0
1.0.0.0
FastD Event
Sources
Download
MIT
The Requires
The Development Requires
by
JanHuang