PHPackages                             ddd-php/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. [Templating &amp; Views](/categories/templating)
4. /
5. ddd-php/event

ActiveLibrary[Templating &amp; Views](/categories/templating)

ddd-php/event
=============

To implement events in domain driven developement or anyother styles projects with PHP

1.0(2y ago)05BSD-3-ClausePHPPHP &gt;=7.2.5

Since Sep 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/frederic100/event)[ Packagist](https://packagist.org/packages/ddd-php/event)[ Docs](https://github.com/frederic100/event)[ RSS](/packages/ddd-php-event/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

Installation
============

[](#installation)

composer require ddd/event

Usage
=====

[](#usage)

Steps are:

- create a domain event (name + past tense verb, example: AccountCreated implements DomainEventInterface)
- publish this event
- distribute events

Somewhere else:

- create a subscriber at an event (exemple: class SendEmailWhenAccountCreatedSubscriber implements DomainEventSubscriber)
- register the subscriber, when event will be distrute the subscriber will handle it and do what it has to do

To Contribut to ddd/Event
=========================

[](#to-contribut-to-dddevent)

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

[](#requirements)

- docker
- git

Install
-------

[](#install)

- git clone :frederic100/event.git

Unit test
---------

[](#unit-test)

```
bin/phpunit
```

with Test Developpment Driven (thanks Kent Beck and the others), good practices (thanks R.Martin and the others)

Quality
-------

[](#quality)

- phpcs STD12
- phpstan level 9
- coverage 100%
- infection MSI &gt;99%

Quick check with:

```
./codecheck
```

Check coverage with:

```
bin/phpunit --coverage-html var
```

and view 'var/index.html' with your browser

Check infection with:

```
bin/infection
```

and view 'var/infection.html' with your browser

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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

Total

2

Last Release

965d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b55e08523b4e1c881655796925ea5ac3ed5d997b533185be986b4a0e0d4f73c4?d=identicon)[fredlogipro](/maintainers/fredlogipro)

---

Top Contributors

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

---

Tags

ddd-patternseventstemplating

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[twig/twig

Twig, the flexible, fast, and secure template language for PHP

8.4k443.2M5.8k](/packages/twig-twig)[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[smarty/smarty

Smarty - the compiling PHP template engine

2.3k39.1M395](/packages/smarty-smarty)[timber/timber

Create WordPress themes with beautiful OOP code and the Twig Template Engine

5.7k3.4M111](/packages/timber-timber)[league/plates

Plates, the native PHP template system that's fast, easy to use and easy to extend.

1.5k5.9M232](/packages/league-plates)[eftec/bladeone

The standalone version Blade Template Engine from Laravel in a single php file

8208.4M87](/packages/eftec-bladeone)

PHPackages © 2026

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