spatie/laravel-event-sourcing
Larablocks Analysis
Compatibility
Trusted maintainerspatie/laravel-event-sourcing works with Laravel 12 and 13 (latest release 7.15.4, Nov 30, 2026).
Laravel 6 to 11 in earlier releases.
- Trusted maintainer: spatie publishes 287 packages on Larablocks, with 204,136,623 downloads a month between them.
Recommendation checks
RecommendedRecommended by Larablocks: meets all 4 checks.
- Works with Laravel 13, the current version
- Released in the last 12 months (Nov 30, 2026)
- 267,627 downloads a month (at least 10,000)
- 920 GitHub stars (at least 100)
State
Actively maintained- Last stable release: Nov 30, 2026.
- 13 releases in the last 12 months.
- First released: Sep 20, 2019.
- Monthly downloads: 267,627, up 28% from six months ago.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.
| Install | |
|---|---|
composer require spatie/laravel-event-sourcing |
|
| Latest Version: | 7.15.4 |
| PHP: | ^8.4 |
| Laravel: | 12 · 13 |
| Older releases: | 6 – 11 |
| License: | MIT |
| Last Updated: | Nov 30, 2026 |
| Links: | GitHub · Packagist |
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.
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
- Larabank built with projectors
- Larabank built with aggregates and projectors
Event sourcing in Laravel course
If you want to learn more about event sourcing, check out our course on event sourcing in Laravel
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
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. We publish all received postcards on our virtual postcard wall.
Documentation
You can find installation instructions and detailed instructions on how to use this package at the dedicated documentation site.
Upgrading from laravel-event-projector
This package supercedes 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.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you've found a bug regarding security please mail security@spatie.be instead of using the issue tracker.
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.
Credits
The aggregate root functionality is heavily inspired by Frank De Jonge's excellent EventSauce package. A big thank you to Dries Vints for giving lots of valuable feedback while we were developing the package.
Footnotes
1 Quote taken from Event Sourcing made Simple
License
The MIT License (MIT). Please see License File for more information.
Related Packages
Dive into Domain Driven Design using Event Sourcing and CQRS within your Laravel...
Build Elasticsearch queries based of a query string
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 7.15.4 | ^8.4 | ^12.0| | MIT | |
| 7.15.3 | ^8.4 | ^12.0| | MIT | |
| 7.15.2 | ^8.4 | ^12.0| | MIT | |
| 7.15.1 | ^8.0 | ^10.0| | MIT | |
| 7.15.0 | ^8.0 | ^10.0| | MIT | |
| 7.14.0 | ^8.0 | ^10.0| | MIT | |
| 7.13.0 | ^8.0 | ^10.0| | MIT | |
| 7.12.9 | ^8.0 | ^10.0| | MIT | |
| 7.12.8 | ^8.0 | ^10.0| | MIT | |
| 7.12.7 | ^8.0 | ^10.0| | MIT | |
| 7.12.6 | ^8.0 | ^10.0| | MIT | |
| 7.12.5 | ^8.0 | ^10.0| | MIT | |
| 7.12.4 | ^8.0 | ^10.0| | MIT | |
| 7.12.3 | ^8.0 | ^10.0| | MIT | |
| 7.12.2 | ^8.0 | ^10.0| | MIT | |
| 7.12.1 | ^8.0 | ^10.0| | MIT | |
| 7.12.0 | ^8.0 | ^10.0| | MIT | |
| 7.11.3 | ^8.0 | ^10.0| | MIT | |
| 7.11.2 | ^8.0 | ^10.0| | MIT | |
| 7.11.1 | ^8.0 | ^10.0| | MIT | |
| 7.11.0 | ^8.0 | ^10.0| | MIT | |
| 7.10.3 | ^8.0 | ^9.0| | MIT | |
| 7.10.2 | ^8.0 | ^9.0| | MIT | |
| 7.10.1 | ^8.0 | ^9.0| | MIT | |
| 7.10.0 | ^8.0 | ^9.0| | MIT | |
| 7.9.1 | ^8.0 | ^9.0| | MIT | |
| 7.9.0 | ^8.0 | ^9.0| | MIT | |
| 7.8.0 | ^8.0 | ^9.0| | MIT | |
| 7.7.0 | ^8.0 | ^9.0| | MIT | |
| 7.6.2 | ^8.0 | ^9.0| | MIT |
Showing the latest 30 of 120. See every release on Packagist
