Laravel event sourcing domain generator
albertoarena/laravel-event-sourcing-generator is a Laravel package for laravel event sourcing domain generator.
It currently has 26 GitHub stars and 10.890 downloads on Packagist (latest version v1.1.2).
Install it with composer require albertoarena/laravel-event-sourcing-generator.
Discover more Laravel packages by albertoarena
or browse all Laravel packages to compare alternatives.
Last updated
Laravel event sourcing generator scaffolds complete domain structures for Spatie's Laravel Event Sourcing, providing a single Artisan command to generate events, projections, projectors, aggregates, reactors, actions, DTOs, notifications, and PHPUnit tests β optionally straight from an existing migration.
Full documentation is at albertoarena.github.io/laravel-event-sourcing-generator.
composer require albertoarena/laravel-event-sourcing-generator
| Laravel | PHP | Testbench | | --- | --- | --- | | 11.x (deprecated) | 8.3, 8.4 | 9.x | | 12.x | 8.3, 8.4, 8.5 | 10.x | | 13.x | 8.3, 8.4, 8.5 | 11.x |
PHP: 8.3 β 8.5 Β· Spatie Laravel Event Sourcing: 7.x
php artisan make:event-sourcing-domain Animal --domain=Animal
This creates a complete event-sourced domain (events, projections, projectors, actions and DTOs) in app/Domain/Animal/Animal/. Add --aggregate=1, --reactor=1, --unit-test, --notifications=β¦ and more β see the documentation for every option and worked examples.
Using Claude Code? Install the companion claude-laravel-event-sourcing skill to scaffold domains conversationally.
Please see CHANGELOG for what has changed recently.
Feel free to fork, improve and create a pull request. Please see CONTRIBUTING for details.
Subscribe and get my free Spatie Event Sourcing cheat sheet (printable PDF), plus practical notes on Laravel and AI-assisted development, roughly once a month. No spam.
The MIT License (MIT). Please see LICENSE for more information.