albertoarena/laravel-event-sourcing-generator
| Install | |
|---|---|
composer require albertoarena/laravel-event-sourcing-generator |
|
| Latest Version: | v1.1.3 |
| PHP: | ^8.3|^8.4|^8.5 |
| License: | MIT |
| Last Updated: | Sep 29, 2026 |
| Links: | GitHub · Packagist |
Laravel event sourcing generator
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.
📖 Documentation
Full documentation is at albertoarena.github.io/laravel-event-sourcing-generator.
- Installation
- Quick start
- Guide — basic & advanced usage, domains, migrations, unit tests
- Command options reference
Installation
composer require albertoarena/laravel-event-sourcing-generator
Compatibility
| 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
Quick start
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.
Changelog
Please see CHANGELOG for what has changed recently.
Contributing
Feel free to fork, improve and create a pull request. Please see CONTRIBUTING for details.
📬 Stay updated
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.
License
The MIT License (MIT). Please see LICENSE for more information.
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.1.3 | ^8.3| | * | MIT | |
| v1.1.2 | ^8.3| | * | MIT | |
| v1.1.1 | ^8.3| | * | MIT | |
| v1.1.0 | ^8.3| | * | MIT | |
| v1.0.15 | ^8.3| | * | MIT | |
| v1.0.14 | ^8.3| | * | MIT | |
| v1.0.13 | ^8.3| | * | MIT | |
| v1.0.12 | ^8.2| | * | MIT | |
| v1.0.11 | ^8.2| | * | MIT | |
| v1.0.10 | ^8.2| | * | MIT | |
| v1.0.9 | ^8.2| | * | MIT | |
| v1.0.8 | ^8.2| | * | MIT | |
| v1.0.7 | ^8.2| | * | MIT | |
| v1.0.6 | ^8.2 | * | MIT | |
| v1.0.5 | ^8.2 | * | MIT | |
| v1.0.4 | ^8.2 | * | MIT | |
| v1.0.3 | ^8.2 | * | MIT | |
| v1.0.2 | ^8.2 | * | MIT | |
| v1.0.1 | ^8.2 | * | MIT | |
| v1.0.0 | ^8.2 | * | MIT | |
| v0.1.27 | ^8.2 | * | MIT | |
| v0.1.26 | ^8.2 | * | MIT | |
| v0.1.25 | ^8.2 | * | MIT | |
| v0.1.24 | ^8.2 | * | MIT | |
| v0.1.23 | ^8.2 | * | MIT | |
| v0.1.22 | ^8.2 | * | MIT | |
| v0.1.21 | ^8.2 | * | MIT | |
| v0.1.20 | ^8.2 | * | MIT | |
| v0.1.19 | ^8.2 | * | MIT | |
| v0.1.18 | ^8.2 | * | MIT |
Showing the latest 30 of 48. See every release on Packagist