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

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

unixslayer/event-sourcing
=========================

Event Sourcing implementation using prooph/event-store

0.3.0(4y ago)26.5k1BSD-3-ClausePHPPHP ^7.4|^8.0CI failing

Since Aug 11Pushed 4y ago2 watchersCompare

[ Source](https://github.com/unixslayer/event-sourcing)[ Packagist](https://packagist.org/packages/unixslayer/event-sourcing)[ RSS](/packages/unixslayer-event-sourcing/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (6)Versions (4)Used By (1)

unixslayer/event-sourcing
=========================

[](#unixslayerevent-sourcing)

[![Tests Status](https://github.com/unixslayer/event-sourcing/actions/workflows/tests.yml/badge.svg)](https://github.com/unixslayer/event-sourcing/actions/workflows/tests.yml)[![Analyse Status](https://github.com/unixslayer/event-sourcing/actions/workflows/static-analysis.yml/badge.svg)](https://github.com/unixslayer/event-sourcing/actions/workflows/static-analysis.yml)[![Coverage Status](https://camo.githubusercontent.com/87793b6d2bff04ceb47a18b7f63cb390f655e834c9f8022b47f5ad51ee426cd1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f756e6978736c617965722f6576656e742d736f757263696e672f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/unixslayer/event-sourcing?branch=master)[![GitHub release (latest by date)](https://camo.githubusercontent.com/3580cae6683cceddf6682cadabe628e072719dbd824f3f4916c3cd3d7f7f0c27/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f756e6978736c617965722f6576656e742d736f757263696e67)](https://github.com/unixslayer/event-sourcing/releases)[![GitHub](https://camo.githubusercontent.com/752b744ff84cd03b1267da12befd3c036747e8771e5c13b9643ab3b7ec1f59ab/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f756e6978736c617965722f6576656e742d736f757263696e67)](LICENSE.md)

Basic implementation of Event Sourcing due to fact that [prooph/event-sourcing](https://github.com/prooph/event-sourcing) is abandoned. If you are looking for Aggregate repository, check out [unixslayer/event-store](https://github.com/unixslayer/event-store).

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

[](#installation)

You can install this via composer by running `composer require unixslayer/event-sourcing` or adding it as requirement to your composer.json

Usage
-----

[](#usage)

This library comes with basic implementation of Event Sourcing which is only two classes:

- aggregate root
- aggregate event

This repository is inspired from Prooph solution with assimption of being independent from any framework. If you are familiar with [prooph/event-sourcing](https://github.com/prooph/event-sourcing), you'll know what to expect. Otherwise, check out Prooph's repository or [tests](./tests/Domain/CartTest.php).

Support
-------

[](#support)

I strongly recommend for implementing Event Sourcing by your own. You can accomplish that in a way described [here](https://unixslayer.github.io/how-i-did-my-own-implementation-of-event-sourcing) and [here](https://unixslayer.github.io/implementing-aggregate-repository) or [here](https://github.com/prooph/documentation/blob/master/event-store-client/blueprints.md). If for some reason you find this library useful and use it, feel free to file an issue. Also, PR will be awesome.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

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

Every ~179 days

Total

3

Last Release

1741d ago

PHP version history (3 changes)0.1.0PHP ^7.2.5

0.2.0PHP ^7.4

0.3.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/93ac65cff725ea128b803dd6414df657be24f2d3edf28e0b2c9d859754b3a93c?d=identicon)[unixslayer](/maintainers/unixslayer)

---

Top Contributors

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

---

Tags

dddevent-sourcingproophdddevent sourcing

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[ecotone/ecotone

Supporting you in building DDD, CQRS, Event Sourcing applications with ease.

558549.8k17](/packages/ecotone-ecotone)[prooph/snapshotter

snapshot tool for prooph event-store

19169.7k3](/packages/prooph-snapshotter)[pauci/cqrs

CQRS library

1725.2k2](/packages/pauci-cqrs)[honeybee/honeybee

Library for implementing CQRS driven, event-sourced and distributed architectures.

222.1k4](/packages/honeybee-honeybee)

PHPackages © 2026

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