New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

spatie/laravel-event-sourcing

The easiest way to get started with event sourcing in Laravel
5,619,699 920

Larablocks Analysis

Compatibility

Trusted maintainer

spatie/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

Recommended

Recommended 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
Maintainer: spatie
Logo for laravel-event-sourcing

Event sourcing for Artisans 📽

Latest Version on Packagist Tests Total Downloads

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.

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

c4tech/ray-emitter

Dive into Domain Driven Design using Event Sourcing and CQRS within your Laravel...

151 0
spatie/laravel-google-calendar

Manage events on a Google Calendar

2,297,132 1,397
spatie/elasticsearch-search-string-parser

Build Elasticsearch queries based of a query string

24,619 51
deferdie/event

Event management for Laravel 5

16 0
spatie/backtrace

A better backtrace

220,267,784 438

Version History

Version Released PHP Laravel License
7.15.4 ^8.4 ^12.0|^13.0 MIT
7.15.3 ^8.4 ^12.0|^13.0 MIT
7.15.2 ^8.4 ^12.0|^13.0 MIT
7.15.1 ^8.0 ^10.0|^11.0|^12.0|^13.0 MIT
7.15.0 ^8.0 ^10.0|^11.0|^12.0|^13.0 MIT