PHPackages                             flextype-components/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. flextype-components/event

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

flextype-components/event
=========================

Event Component provides a versatile tool to manage events in your app.

v1.0.4(7y ago)08161MITPHPPHP ^7.1.3

Since Apr 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/flextype-components/event)[ Packagist](https://packagist.org/packages/flextype-components/event)[ Docs](https://github.com/flextype-components/event)[ RSS](/packages/flextype-components-event/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Event Component
===============

[](#event-component)

[![version](https://camo.githubusercontent.com/258ee2411d95662305a3bed3d97fdee8316b3146689b7643fd399ec6054b9ff3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e342d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/258ee2411d95662305a3bed3d97fdee8316b3146689b7643fd399ec6054b9ff3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e342d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)[![MIT License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)

Event Component provides a versatile tool to manage events in your app.

### Installation

[](#installation)

```
composer require flextype-components/event

```

### Usage

[](#usage)

```
use Flextype\Component\Event\Event;
```

Add new listeners

```
Event::addListener('event_name', function() { echo 'Test Event 1'; }, 1);
Event::addListener('event_name', function() { echo 'Test Event 2'; }, 2);
```

Remove all listeners for current event.

```
Event::removeAllListeners('event_name');
```

Check is listeners exists for current event.

```
if (Event::hasListeners('event_name')) {
    // do something...
}
```

Dispatch all listeners of the given event.

```
Event::dispatch('event_name');
```

Get listeners array

```
$listeners = Event::getListeners();
```

License
-------

[](#license)

See [LICENSE](https://github.com/flextype-components/event/blob/master/LICENSE)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Total

5

Last Release

2905d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/477114?v=4)[Sergey Romanenko](/maintainers/Awilum)[@Awilum](https://github.com/Awilum)

---

Top Contributors

[![Awilum](https://avatars.githubusercontent.com/u/477114?v=4)](https://github.com/Awilum "Awilum (10 commits)")

---

Tags

componenteventflextypeflextype-componentpgpphpevents

### Embed Badge

![Health badge](/badges/flextype-components-event/health.svg)

```
[![Health](https://phpackages.com/badges/flextype-components-event/health.svg)](https://phpackages.com/packages/flextype-components-event)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
