PHPackages                             dhii/event-interface - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. dhii/event-interface

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

dhii/event-interface
====================

An event standard to complement PSR-14

v0.3.0(6y ago)615.5k22MITPHPPHP ^7.0CI failing

Since Jul 6Pushed 4y ago3 watchersCompare

[ Source](https://github.com/Dhii/event-interface)[ Packagist](https://packagist.org/packages/dhii/event-interface)[ RSS](/packages/dhii-event-interface/feed)WikiDiscussions 0.4.x Synced 4d ago

READMEChangelog (5)Dependencies (3)Versions (10)Used By (2)

Dhii - Event Interface
======================

[](#dhii---event-interface)

[![Continuous Integration](https://github.com/Dhii/event-interface/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/Dhii/event-interface/actions/workflows/continuous-integration.yml)[![Latest Stable Version](https://camo.githubusercontent.com/f2ff0c9432da48c0144ad690dc35e8744070115cb269a75adbb880bc1bdea545/68747470733a2f2f706f7365722e707567782e6f72672f646869692f6576656e742d696e746572666163652f76657273696f6e)](https://packagist.org/packages/dhii/event-interface)[![Latest Unstable Version](https://camo.githubusercontent.com/828e70263ae2191467da576b74aa0dee6adf79a829c423b962850b82642de15a/68747470733a2f2f706f7365722e707567782e6f72672f646869692f6576656e742d696e746572666163652f762f756e737461626c65)](https://packagist.org/packages/dhii/event-interface)

Details
-------

[](#details)

The [PSR-14](https://www.php-fig.org/psr/psr-14/) standard provides interfaces used for dispatching events. But what of events themselves? How can a consumer of the dispatcher (i.e. the emitter) interoperate with the handler, if they have no agreement on what an event may look like? This package aims to provide interfaces that could facilitate the interoperability of events that are identified by event name.

Usage
-----

[](#usage)

### Basic Features

[](#basic-features)

In essence, an event is but a map of parameters associated with a name.

```
