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

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

patchlevel/laravel-event-sourcing
=================================

laravel package for patchlevel/event-sourcing

1.4.0(2mo ago)74.2k↓61.9%2[1 issues](https://github.com/patchlevel/laravel-event-sourcing/issues)[1 PRs](https://github.com/patchlevel/laravel-event-sourcing/pulls)MITPHPPHP ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since Nov 11Pushed 5d ago2 watchersCompare

[ Source](https://github.com/patchlevel/laravel-event-sourcing)[ Packagist](https://packagist.org/packages/patchlevel/laravel-event-sourcing)[ Docs](https://github.com/patchlevel/laravel-event-sourcing)[ RSS](/packages/patchlevel-laravel-event-sourcing/feed)WikiDiscussions 1.5.x Synced 2w ago

READMEChangelog (8)Dependencies (24)Versions (20)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/b1ff7fecade4b345543394cb44c170b57ff415db25211e7aaea6110bea441ab5/68747470733a2f2f706f7365722e707567782e6f72672f70617463686c6576656c2f6c61726176656c2d6576656e742d736f757263696e672f76)](//packagist.org/packages/patchlevel/laravel-event-sourcing)[![License](https://camo.githubusercontent.com/ed9bca7dff360209cfa16c05198c079fff76c66f5ebc96e1954a4007982d8b3b/68747470733a2f2f706f7365722e707567782e6f72672f70617463686c6576656c2f6c61726176656c2d6576656e742d736f757263696e672f6c6963656e7365)](//packagist.org/packages/patchlevel/laravel-event-sourcing)

Laravel-Event-Sourcing
======================

[](#laravel-event-sourcing)

An event sourcing laravel package, complete with all the essential features, powered by the reliable Doctrine ecosystem and focused on developer experience. This package is a [laravel](https://laravel.com/) integration for [event-sourcing](https://github.com/patchlevel/event-sourcing) library.

Features
--------

[](#features)

- Everything is included in the package for event sourcing
- Facades for easy access to event sourcing services and aggregates
- Developer experience oriented and fully typed
- Automatic [snapshot](https://laravel-event-sourcing.patchlevel.io/latest/snapshots/)-system to boost your performance
- [Split](https://laravel-event-sourcing.patchlevel.io/latest/split_stream/) big aggregates into multiple streams
- Versioned and managed lifecycle of [subscriptions](https://laravel-event-sourcing.patchlevel.io/latest/subscription/) like projections and processors
- Safe usage of [Personal Data](https://laravel-event-sourcing.patchlevel.io/latest/personal_data/) with crypto-shredding
- Smooth [upcasting](https://laravel-event-sourcing.patchlevel.io/latest/upcasting/) of old events
- Simple setup with [scheme management](https://laravel-event-sourcing.patchlevel.io/latest/store/) and [doctrine migration](https://laravel-event-sourcing.patchlevel.io/latest/store/)
- Built in [cli commands](https://event-sourcing.patchlevel.io/latest/cli/)
- and much more...

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

[](#installation)

```
composer require patchlevel/laravel-event-sourcing
```

Tip

Further installation steps can be found in the [installation instructions](https://laravel-event-sourcing.patchlevel.io/latest/installation/).

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

[](#documentation)

- [Package Documentation](https://laravel-event-sourcing.patchlevel.io/latest/getting_started/)
- [Library Documentation](https://event-sourcing.patchlevel.io/latest/aggregate/)
- [Related Blog](https://patchlevel.de/blog)

Sponsors
--------

[](#sponsors)

[![blackfire](https://private-user-images.githubusercontent.com/470138/252316849-d00b7459-23b7-431b-80b4-93cfc1b66216.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODE3Nzg4NjMsIm5iZiI6MTc4MTc3ODU2MywicGF0aCI6Ii80NzAxMzgvMjUyMzE2ODQ5LWQwMGI3NDU5LTIzYjctNDMxYi04MGI0LTkzY2ZjMWI2NjIxNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNjE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDYxOFQxMDI5MjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03MDY3NDZmZTI2ODRmNWE4ZGNkMGRhNWQ3ZWJmMDA2MWUxOTIyNWE0NmJiYmRmYzhjOWVlYTA2NDY4ZTAyOGY2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.2MQVlOKlJS6iQqAmDSuJzqsGgWLdSbMA0FB4ew7eUqg)](https://www.blackfire.io)

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance90

Actively maintained with recent releases

Popularity30

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 86.4% 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 ~43 days

Recently: every ~36 days

Total

14

Last Release

21d ago

PHP version history (4 changes)1.0.0-beta1PHP ~8.1.0 || ~8.2.0 || ~8.3.0

1.1.0PHP ~8.2.0 || ~8.3.0 || ~8.4.0

1.2.0PHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

1.4.0PHP ~8.3.0 || ~8.4.0 || ~8.5.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/470138?v=4)[David Badura](/maintainers/DavidBadura)[@DavidBadura](https://github.com/DavidBadura)

---

Top Contributors

[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (323 commits)")[![DanielBadura](https://avatars.githubusercontent.com/u/2017762?v=4)](https://github.com/DanielBadura "DanielBadura (26 commits)")[![DavidBadura](https://avatars.githubusercontent.com/u/470138?v=4)](https://github.com/DavidBadura "DavidBadura (23 commits)")[![aidan-casey](https://avatars.githubusercontent.com/u/6686277?v=4)](https://github.com/aidan-casey "aidan-casey (1 commits)")[![HellPat](https://avatars.githubusercontent.com/u/1016798?v=4)](https://github.com/HellPat "HellPat (1 commits)")

---

Tags

event-sourcinglaravelphplaravelevent sourcing

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[hirethunk/verbs

An event sourcing package that feels nice.

515202.9k7](/packages/hirethunk-verbs)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

328482.0k25](/packages/codewithdennis-filament-select-tree)[nativephp/desktop

NativePHP for Desktop

38133.6k8](/packages/nativephp-desktop)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

63105.4k2](/packages/hydrat-filament-table-layout-toggle)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

199.1k](/packages/tarfin-labs-event-machine)

PHPackages © 2026

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