Download the PHP package initphp/event-emitter without Composer
On this page you can find all versions of the php package initphp/event-emitter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download initphp/event-emitter
More information about initphp/event-emitter
Files in initphp/event-emitter
Package event-emitter
Short Description PHP Event Emitter (DEPRECATED — merged into initphp/events:^2.0)
License MIT
Informations about the package event-emitter
InitPHP EventEmitter
⚠️ DEPRECATED — Use
initphp/eventsinsteadAs part of the InitPHP package consolidation, this package has been merged into
initphp/eventsstarting with version 2.0. The new package bundles the sameEventEmitterprimitive plus the higher-levelEvents/Eventfacade.This repository is kept read-only for historical reference. The final release (
1.0.1) ships a bug fix forEventEmitter::emit()(see below) but no further updates will be released.Migration
Update your
composer.json:Your existing imports keep working:
initphp/events:^2.0ships aclass_aliasso\InitPHP\EventEmitter\EventEmitterand\InitPHP\EventEmitter\EventEmitterInterfaceremain resolvable.- When you next touch the code, prefer the canonical namespace:
Composer declares a
replacefrominitphp/events:^2.0toinitphp/event-emitter, so the two packages will not be installed side-by-side.
emit()bug fix in 1.0.1Version
1.0.1of this package contains a single bug fix inEventEmitter::emit(): the inner loop now correctly passes each individual$listenertocall_user_func_array, instead of the surrounding$listenersarray. Before this fix, emitted events fired no listeners.
This library has been designed to emit events in its simplest and simplest form.
Requirements
- PHP 5.6 or higher
Installation
or Manuel Installation :
Download this repository. And include the src/Init.php file in your project.
Usage
Credits
License
Copyright © 2022 MIT License