PHPackages                             labrador-kennel/async-event - 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. labrador-kennel/async-event

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

labrador-kennel/async-event
===========================

Trigger semantic application events powered by Amp Event Loop

v4.1.0(2y ago)498123MITPHPPHP ^8.2CI failing

Since May 13Pushed 2y ago2 watchersCompare

[ Source](https://github.com/labrador-kennel/async-event)[ Packagist](https://packagist.org/packages/labrador-kennel/async-event)[ RSS](/packages/labrador-kennel-async-event/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (8)Versions (20)Used By (3)

Labrador Async Event
====================

[](#labrador-async-event)

[![Unit Testing & Code Lint](https://github.com/labrador-kennel/async-event/workflows/Unit%20Testing%20&%20Code%20Lint/badge.svg)](https://github.com/labrador-kennel/async-event/workflows/Unit%20Testing%20&%20Code%20Lint/badge.svg)[![Latest Release](https://camo.githubusercontent.com/df6c79bd47f377afcea966f581d16ca68b570fc62ae68e2cb38a22fd308ace21/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6c61627261646f722d6b656e6e656c2f6173796e632d6576656e74)](https://camo.githubusercontent.com/df6c79bd47f377afcea966f581d16ca68b570fc62ae68e2cb38a22fd308ace21/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6c61627261646f722d6b656e6e656c2f6173796e632d6576656e74)

Labrador Async Event provides a way to emit semantic events on the [amphp/amp](https://amphp.org) event loop. It provides a robust set of features for working with an event system, including:

- First-class representation of an event with the `Labrador\AsyncEvent\Event` interface.
- Events include a rich set of data; including the datetime the event was emitted and a type-safe, object payload.
- First-class representation of an event listener with the `Labrador\AsyncEvent\Listener` interface.
- Remove listeners using an object-oriented API.
- Emit fire &amp; forget events that don't block current execution

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

[](#installation)

[Composer](https://getcomposer.org) is the only supported method for installing Labrador packages.

```
composer require labrador-kennel/async-event

```

Usage Guide
-----------

[](#usage-guide)

> This guide details how to use Async Event v4+. This version makes significant changes and moves towards a type-safe, stable API. Please review the README in the tag for the version you're using.

```
