PHPackages                             a50/event-dispatcher - 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. a50/event-dispatcher

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

a50/event-dispatcher
====================

Event Dispatcher

03PHP

Since May 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/a50dev/event-dispatcher)[ Packagist](https://packagist.org/packages/a50/event-dispatcher)[ RSS](/packages/a50-event-dispatcher/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [ ![](https://avatars.githubusercontent.com/u/150102356) ](https://github.com/A50dev)

A50 Event Dispatcher
====================

[](#a50-event-dispatcher)

[![Latest Version on Packagist](https://camo.githubusercontent.com/785c33b4c79588beec12ea3ecc26f87acaef5ea89daacbeaa438c14e84a25d78/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6135302f6576656e742d646973706174636865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/a50/event-dispatcher)[![GitHub Workflow Status](https://camo.githubusercontent.com/6de7a75af12c222f82500e3828e452f031c20152666203c7603813a4bc42bf08/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6135302f6576656e742d646973706174636865722f74657374733f6c6162656c3d7465737473)](https://github.com/a50/event-dispatcher/actions/workflows/test.yml)[![Analysis](https://github.com/a50/event-dispatcher/actions/workflows/analyse.yml/badge.svg?branch=main)](https://github.com/a50/container/actions/workflows/analyse.yml)[![Total Downloads](https://camo.githubusercontent.com/158c5db1402454a70690f7a10675847bb100da1348093819f70f3e4c23e59cae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6135302f6576656e742d646973706174636865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/a50/event-dispatcher)

---

This is PSR-14 Event Dispatcher pretty simple implementation and framework-agnostic solution.

Why another one?
----------------

[](#why-another-one)

Because:

- you want to follow standard and don't worry about implementation. You can change this provider to another one anytime;
- you don't need complicated and overhead solution;
- you want easy configure and use event dispatcher.

Requirements
------------

[](#requirements)

- The minimum PHP version is 8.0.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require a50/event-dispatcher
```

Usage
-----

[](#usage)

For standalone usage example below. In your entity you need to register event:

```
