PHPackages                             initphp/event-emitter - 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. initphp/event-emitter

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

initphp/event-emitter
=====================

PHP Event Emitter

1.0(3y ago)01201MITPHPPHP &gt;=5.6

Since Jul 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/InitPHP/EventEmitter)[ Packagist](https://packagist.org/packages/initphp/event-emitter)[ RSS](/packages/initphp-event-emitter/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (1)

InitPHP EventEmitter
====================

[](#initphp-eventemitter)

This library has been designed to emit events in its simplest and simplest form.

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

[](#requirements)

- PHP 5.6 or higher

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

[](#installation)

```
composer require initphp/event-emitter

```

or **Manuel Installation :**

Download this repository. And include the `src/Init.php` file in your project.

Usage
-----

[](#usage)

```
require_once "vendor/autoload.php";
use InitPHP\EventEmitter\EventEmitter;

$events = new EventEmitter();

$events->on('hello', function ($name) {
    echo 'Hello ' . $name . '!' . PHP_EOL;
}, 99);

$events->on('hello', function ($name) {
    echo 'Hi ' . $name . '!' . PHP_EOL;
}, 10);

// Emit
$events->emit('hello', ['World']);
```

*Output :*

```
Hi World!
Hello World!

```

Credits
-------

[](#credits)

- [Muhammet ŞAFAK](https://www.muhammetsafak.com.tr) &lt;&gt;

License
-------

[](#license)

Copyright © 2022 [MIT License](./LICENSE)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1409d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b6b34f3ac8938d8ee52ba3bd260680855dc5715c7b2929d9380de30d15a67dd?d=identicon)[muhammetsafak](/maintainers/muhammetsafak)

---

Top Contributors

[![muhammetsafak](https://avatars.githubusercontent.com/u/104234499?v=4)](https://github.com/muhammetsafak "muhammetsafak (2 commits)")

---

Tags

event-emitterevent-emitter-callbackevent-emitterseventemittereventsphpphp-eventphp56php7

### Embed Badge

![Health badge](/badges/initphp-event-emitter/health.svg)

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

###  Alternatives

[knplabs/knp-disqus-bundle

6480.2k](/packages/knplabs-knp-disqus-bundle)[codexshaper/laravel-menu-builder

Laravel Drag and Drop Menu Builder

932.6k](/packages/codexshaper-laravel-menu-builder)[web200/magento-seo

Magento 2 Seo Module

1416.8k](/packages/web200-magento-seo)

PHPackages © 2026

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