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

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

krixon/domain-event
===================

Domain event library.

0.3.0(6y ago)04.9k1MITPHPPHP &gt;=7.2CI failing

Since Apr 20Pushed 6y ago2 watchersCompare

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

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

Domain Event
============

[](#domain-event)

[![Build Status](https://camo.githubusercontent.com/39d4ce0e04c4cc0022e06d615a6b8e1e31e8d89c9ec498df0cd78d6282e5fe04/68747470733a2f2f7472617669732d63692e6f72672f6b7269786f6e2f646f6d61696e2d6576656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/krixon/domain-event)[![Coverage Status](https://camo.githubusercontent.com/dbff6f7f35267986671f129784aec24fb6458e29a5dbc94df74b3dc72e70ed41/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6b7269786f6e2f646f6d61696e2d6576656e742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/krixon/domain-event?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/f17568e379346ebcbbbacb322c382c290eda63695cd32b68bf25f66e94dc1334/68747470733a2f2f706f7365722e707567782e6f72672f6b7269786f6e2f646f6d61696e2d6576656e742f762f737461626c65)](https://packagist.org/packages/krixon/domain-event)[![Latest Unstable Version](https://camo.githubusercontent.com/0d0ab8b662a8f19b80d1c983e676a0279ac50c1004b597284159c45a3525eef7/68747470733a2f2f706f7365722e707567782e6f72672f6b7269786f6e2f646f6d61696e2d6576656e742f762f756e737461626c65)](https://packagist.org/packages/krixon/domain-event)

A library for using domain events.

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

[](#installation)

`$ composer require krixon/domain-event`

Development
-----------

[](#development)

### Build Image and Run Container

[](#build-image-and-run-container)

Note: If your host machine's user does not have an ID of 1000, run the following command from the project root directory:

```
echo "DEV_UID=$(id -u)" > .env
```

This ensures that any files created in mounted directories have the correct permissions. It will also cause the host user's SSH keys and Composer cache to be used inside the container.

Build image:

`$ docker-compose build`

Install dependencies:

`$ docker-compose run --rm library composer install`

### Run the tests

[](#run-the-tests)

`$ docker-compose run --rm library composer test`

Coding Standard
---------------

[](#coding-standard)

This library uses a customised version of the Doctrine coding standard that must be followed at all times. If you're using PHPStorm you can make this easier by enabling the Code Sniffer inspection:

Navigate to `Settings > Editor > Inspections` and select `PHP > Quality Tools > PHP Code Sniffer validation` from the list. Enable the inspection. Set the severity to `ERROR` and check the show warning as checkbox with the option `WEAK WARNING`. Select the coding standard Custom and point the rule set path to the `phpcs.xml.dist` file at the root of the project.

To check conformance use:

`$ docker-compose run --rm library composer cs`

Testing
-------

[](#testing)

`$ docker-compose run --rm library composer test`

Change log
==========

[](#change-log)

All notable changes are recorded in [CHANGELOG](CHANGELOG.md).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~207 days

Total

5

Last Release

2528d ago

PHP version history (2 changes)0.1.0PHP &gt;=7

0.3.0.x-devPHP &gt;=7.2

### Community

Maintainers

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

---

Top Contributors

[![ben-gibson](https://avatars.githubusercontent.com/u/1383604?v=4)](https://github.com/ben-gibson "ben-gibson (1 commits)")[![krixon](https://avatars.githubusercontent.com/u/559165?v=4)](https://github.com/krixon "krixon (1 commits)")

---

Tags

ddddomain-driven-designdomain-eventsevent-sourcing

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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