igorw/evenement
igorw/evenement has 1,361 GitHub stars and 72 forks. GitHot measured +1 stars in 24 hours. Last checked 2026-11-07 07:23 UTC. Last push 2025-12-26.
Événement is a very simple event dispatching library for PHP.
Measured star growth
- in 24h
- +1
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalÉvénement
Événement is a very simple event dispatching library for PHP.
It has the same design goals as Silex and Pimple, to empower the user while staying concise and simple.
It is very strongly inspired by the EventEmitter API found in node.js.
Fetch
The recommended way to install Événement is through composer. By running the following command:
$ composer require evenement/evenement
Usage
Creating an Emitter
<?php
$emitter = new Evenement\EventEmitter();
Adding Listeners
<?php
$emitter->on('user.created', static function (User $user) use ($logger): void {
$logger->log(sprintf("User '%s' was created.", $user->getLogin()));
});
Removing Listeners
<?php
$emitter->removeListener('user.created', static function (User $user) use ($logger): void {
$logger->log(sprintf("User '%s' was created.", $user->getLogin()));
});
Emitting Events
<?php
$emitter->emit('user.created', [$user]);
Tests
$ ./vendor/bin/phpunit
License
MIT, see LICENSE.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,661 starspublic-apis/public-apis
A collective list of free APIs
496,906 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
439,905 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,108 stars