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

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

crcms/event
===========

event

1.0.2(6y ago)14.3k↓50%1MITPHPPHP &gt;=7.0.0

Since Aug 3Pushed 6y agoCompare

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

READMEChangelogDependencies (1)Versions (6)Used By (1)

Example
-------

[](#example)

### Set the scheduler

[](#set-the-scheduler)

```
Example::setDispatcher(new \CrCms\Event\Dispatcher);

```

### Register event

[](#register-event)

```
Example::registerEvent('event1',$listener);

```

### Push event listener

[](#push-event-listener)

```
Example::pushEvent('event1',$listener);

```

### Listening method

[](#listening-method)

```

//first
$listener => ExampleListener1::class@listen

//second
$listener => ExampleListener2::class

//third
$listener => function($object) {
    ...
}

class ExampleListener1
{
    public function listen($object)
    {
        ...
    }
}

class ExampleListener2
{
    public function handle($object)
    {
        ...
    }
}

function($object) {
    ...
}

```

### Event trigger

[](#event-trigger)

```
class Example {

    use CrCms\Event\HasEvents;

    # Set events
    public static function events() : array
    {
        return ['event1','event2'];
    }

    public function example()
    {
        # Trigger event
        Example::fireEvent('event1',$listener);
    }
}

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

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 ~204 days

Total

5

Last Release

2391d ago

Major Versions

0.0.2 → 1.0.02018-08-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d399a94699f3b91de6be249975ed2dee389fe10d3975518f420143ded5762fd?d=identicon)[hiword](/maintainers/hiword)

---

Top Contributors

[![simondole](https://avatars.githubusercontent.com/u/13651984?v=4)](https://github.com/simondole "simondole (5 commits)")

---

Tags

phpeventobservercrcms

### Embed Badge

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

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

PHPackages © 2026

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