PHPackages                             get-things-done/laravel-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. get-things-done/laravel-event-sourcing

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

get-things-done/laravel-event-sourcing
======================================

The easiest way to get started with event sourcing in Laravel

6.0.4(4y ago)06MITPHPPHP ^8.0

Since Sep 20Pushed 4y agoCompare

[ Source](https://github.com/get-things-done/laravel-event-sourcing)[ Packagist](https://packagist.org/packages/get-things-done/laravel-event-sourcing)[ Docs](https://github.com/spatie/laravel-event-sourcing)[ Fund](https://spatie.be/open-source/support-us)[ RSS](/packages/get-things-done-laravel-event-sourcing/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (19)Versions (73)Used By (0)

Event sourcing for Artisans 📽
=============================

[](#event-sourcing-for-artisans-)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8ae1f38e0658adb8b6668a1f4c5385a18e26f5b2803da3fdd63a150a0028199f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f6c61726176656c2d6576656e742d736f757263696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-event-sourcing)[![Tests](https://github.com/spatie/laravel-event-sourcing/workflows/run-tests/badge.svg)](https://github.com/spatie/laravel-event-sourcing/workflows/run-tests/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/3327d1e20db42a7a5462e024b7eeeb24cbb72786cfdf5e10611dd1250134a1fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f6c61726176656c2d6576656e742d736f757263696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-event-sourcing)

This package aims to be the entry point to get started with event sourcing in Laravel. It can help you with setting up aggregates, projectors, and reactors.

If you've never worked with event sourcing, or are uncertain about what aggregates, projectors and reactors are head over to the getting familiar with event sourcing section [in our docs](https://spatie.be/docs/laravel-event-sourcing/v5/introduction).

Event sourcing might be a good choice for your project if:

- your app needs to make decisions based on the past
- your app has auditing requirements: the reason why your app is in a certain state is equally as important as the state itself
- you foresee that there will be a reporting need in the future, but you don't know yet which data you need to collect for those reports

If you want to skip to reading code immediately, here are some example apps. In each of them, you can create accounts and deposit or withdraw money.

- [Larabank built traditionally without event sourcing](https://github.com/spatie/larabank-traditional)
- [Larabank built with projectors](https://github.com/spatie/larabank-event-projector)
- [Larabank built with aggregates and projectors](https://github.com/spatie/larabank-event-projector-aggregates)

Even sourcing in Laravel course
-------------------------------

[](#even-sourcing-in-laravel-course)

If you want to learn more about event sourcing, check out [our course on event sourcing in Laravel](https://event-sourcing-laravel.com)

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/81fa00b044e6e54055e86d5863d486c859a37f0e47d93695cb512b8e240311e3/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d6576656e742d736f757263696e672e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-event-sourcing)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

Documentation
-------------

[](#documentation)

You can find installation instructions and detailed instructions on how to use this package at [the dedicated documentation site](https://spatie.be/docs/laravel-event-sourcing/v5/introduction/).

Upgrading from laravel-event-projector
--------------------------------------

[](#upgrading-from-laravel-event-projector)

This package supercedes [laravel-event-projector](https://github.com/spatie/laravel-event-projector). It has the same API. Upgrading from laravel-event-projector to laravel-event-sourcing is easy. Take a look at [our upgrade guide](UPGRADING.md).

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Postcardware
------------

[](#postcardware)

You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium.

We publish all received postcards [on our company website](https://spatie.be/en/opensource/postcards).

Credits
-------

[](#credits)

- [Freek Van der Herten](https://github.com/freekmurze)
- [All Contributors](../../contributors)

The aggregate root functionality is heavily inspired by [Frank De Jonge](https://twitter.com/frankdejonge)'s excellent [EventSauce](https://eventsauce.io/) package. A big thank you to [Dries Vints](https://github.com/driesvints) for giving lots of valuable feedback while we were developing the package.

Footnotes
---------

[](#footnotes)

1 Quote taken from [Event Sourcing made Simple](https://kickstarter.engineering/event-sourcing-made-simple-4a2625113224)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 76.6% 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 ~12 days

Recently: every ~3 days

Total

68

Last Release

1672d ago

Major Versions

3.2.3 → 4.0.02020-07-22

v1.x-dev → 4.3.12020-09-09

4.10.2 → 5.0.02021-06-09

v4.x-dev → 5.0.72021-11-17

5.0.8 → 6.0.02021-11-24

PHP version history (4 changes)0.0.1PHP ^7.3

2.0.0PHP ^7.4

4.7.0PHP ^8.0|^7.4

5.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17726941?v=4)[Cao Minh Duc](/maintainers/cao-minh-duc)[@cao-minh-duc](https://github.com/cao-minh-duc)

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (784 commits)")[![brendt](https://avatars.githubusercontent.com/u/6905297?v=4)](https://github.com/brendt "brendt (38 commits)")[![WouterBrouwers](https://avatars.githubusercontent.com/u/40539118?v=4)](https://github.com/WouterBrouwers "WouterBrouwers (23 commits)")[![morrislaptop](https://avatars.githubusercontent.com/u/67807?v=4)](https://github.com/morrislaptop "morrislaptop (23 commits)")[![sebastiandedeyne](https://avatars.githubusercontent.com/u/1561079?v=4)](https://github.com/sebastiandedeyne "sebastiandedeyne (22 commits)")[![adrianspacely](https://avatars.githubusercontent.com/u/3690710?v=4)](https://github.com/adrianspacely "adrianspacely (17 commits)")[![juukie](https://avatars.githubusercontent.com/u/2678657?v=4)](https://github.com/juukie "juukie (15 commits)")[![rodrigopedra](https://avatars.githubusercontent.com/u/5470108?v=4)](https://github.com/rodrigopedra "rodrigopedra (9 commits)")[![telkins](https://avatars.githubusercontent.com/u/53731?v=4)](https://github.com/telkins "telkins (8 commits)")[![dilab](https://avatars.githubusercontent.com/u/218813?v=4)](https://github.com/dilab "dilab (8 commits)")[![inxilpro](https://avatars.githubusercontent.com/u/21592?v=4)](https://github.com/inxilpro "inxilpro (7 commits)")[![sohaibafifi](https://avatars.githubusercontent.com/u/1006521?v=4)](https://github.com/sohaibafifi "sohaibafifi (6 commits)")[![colinc](https://avatars.githubusercontent.com/u/16424?v=4)](https://github.com/colinc "colinc (6 commits)")[![deanlj](https://avatars.githubusercontent.com/u/4245429?v=4)](https://github.com/deanlj "deanlj (6 commits)")[![Robertbaelde](https://avatars.githubusercontent.com/u/4356288?v=4)](https://github.com/Robertbaelde "Robertbaelde (5 commits)")[![erikgaal](https://avatars.githubusercontent.com/u/1234268?v=4)](https://github.com/erikgaal "erikgaal (5 commits)")[![gdebrauwer](https://avatars.githubusercontent.com/u/22586858?v=4)](https://github.com/gdebrauwer "gdebrauwer (5 commits)")[![AdrianMrn](https://avatars.githubusercontent.com/u/12762044?v=4)](https://github.com/AdrianMrn "AdrianMrn (4 commits)")[![rubenvanassche](https://avatars.githubusercontent.com/u/619804?v=4)](https://github.com/rubenvanassche "rubenvanassche (4 commits)")[![36864](https://avatars.githubusercontent.com/u/109086466?v=4)](https://github.com/36864 "36864 (3 commits)")

---

Tags

eventspatieaggregatessourcingprojectorsreactorslaravel-event-sourcing

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/get-things-done-laravel-event-sourcing/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[spatie/laravel-event-sourcing

The easiest way to get started with event sourcing in Laravel

9104.3M31](/packages/spatie-laravel-event-sourcing)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[api-platform/symfony

Symfony API Platform integration

384.5M129](/packages/api-platform-symfony)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M577](/packages/shopware-core)

PHPackages © 2026

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