Open Source

10,000 downloads

laravel-event-sourcing-generator just crossed 10,000 downloads on Packagist. A short look back at how it started and where things have gone since.

2 min read 4th in the event sourcing thread
Sparkler at night
event sourcing thread View series →

laravel-event-sourcing-generator crossed 10,000 downloads on Packagist today.

I built it to solve a specific friction point: setting up a Spatie event-sourcing domain meant writing a lot of the same files every time (aggregates, events, projectors, reactors, read models). The generator takes a migration or a quick description of your model and scaffolds all of it in one artisan command. It’s not a framework addition, just a time-saver.

composer require --dev albertoarena/laravel-event-sourcing-generator
php artisan event-sourcing:generate Post

10k is more than I expected when I published it. The package has a narrow focus and a niche audience (Laravel developers who’ve already bought into event sourcing), so seeing it spread this far is genuinely surprising.

The project didn’t stop at the generator. Earlier this year I built a Claude Code skill (write-up) that adds a design conversation before the code generation, so you work through the domain boundaries before anything gets written. More recently, the filament-event-sourcing plugin (write-up) closes the gap between Filament’s admin panel and your aggregates. The generator for Spatie event sourcing domains is still the foundation, but these fill in the parts it was never meant to handle.

Thanks to everyone who’s used it, filed issues, or left feedback. The package is still actively maintained and the best place for questions is the GitHub issues.

Liked this? Get the next one.

Practical notes on Laravel tooling and AI-assisted development, about once a month. Join the list and I'll send you my Spatie Event Sourcing cheat sheet to start.

Found a mistake, or disagree? Open a discussion on GitHub or send me an email .