PHPackages                             evenement/evenement - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. evenement/evenement

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

evenement/evenement
===================

Événement is a very simple event dispatching library for PHP

v3.0.2(2y ago)1.4k147.0M—2.7%74[2 issues](https://github.com/igorw/evenement/issues)[1 PRs](https://github.com/igorw/evenement/pulls)20MITPHPPHP &gt;=7.0CI failing

Since Sep 21Pushed 4mo ago29 watchersCompare

[ Source](https://github.com/igorw/evenement)[ Packagist](https://packagist.org/packages/evenement/evenement)[ RSS](/packages/evenement-evenement/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (13)Used By (20)

Événement
=========

[](#événement)

Événement is a very simple event dispatching library for PHP.

It has the same design goals as [Silex](https://silex.symfony.com/) and [Pimple](https://github.com/silexphp/Pimple), to empower the user while staying concise and simple.

It is very strongly inspired by the [EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter) API found in [node.js](http://nodejs.org).

[![Continuous Integration](https://github.com/igorw/evenement/workflows/CI/badge.svg)](https://github.com/igorw/evenement/workflows/CI/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/01babdc15e395750abc6657d91b38797aff126b7d020f26a6fa94c10a2fe7e5f/68747470733a2f2f706f7365722e707567782e6f72672f6576656e656d656e742f6576656e656d656e742f76)](https://packagist.org/packages/evenement/evenement)[![Total Downloads](https://camo.githubusercontent.com/3752eaee6970b6254ac648087ac1bdef5fc07089f4c6baf46611a336e9d7e443/68747470733a2f2f706f7365722e707567782e6f72672f6576656e656d656e742f6576656e656d656e742f646f776e6c6f616473)](https://packagist.org/packages/evenement/evenement)[![License](https://camo.githubusercontent.com/3990be02ee3ff1fdffdecd758dee9b095ef97a2e513afeb864850b93e3f36463/68747470733a2f2f706f7365722e707567782e6f72672f6576656e656d656e742f6576656e656d656e742f6c6963656e7365)](https://packagist.org/packages/evenement/evenement)

Fetch
-----

[](#fetch)

The recommended way to install Événement is [through composer](http://getcomposer.org). By running the following command:

```
    $ composer require evenement/evenement
```

Usage
-----

[](#usage)

### Creating an Emitter

[](#creating-an-emitter)

```
