Complete domains
Events, projections, projectors, actions and DTOs every time; aggregates and reactors on demand.
Spatie’s Laravel Event Sourcing is powerful, but wiring up every event, projection, projector, aggregate and reactor by hand is repetitive. This package generates the whole domain structure — consistently, and optionally from an existing database migration — so you can focus on behaviour instead of boilerplate.
Complete domains
Events, projections, projectors, actions and DTOs every time; aggregates and reactors on demand.
From your migrations
Parse an existing migration and map every column into the DTO, projection and projector automatically.
Tests included
Generate working PHPUnit tests covering create / update / delete out of the box.
Notifications
Optional database, mail, Slack and Teams notifications, with failed-event variants.
composer require albertoarena/laravel-event-sourcing-generatorThen generate your first domain:
php artisan make:event-sourcing-domain Animal --domain=AnimalSee Installation for compatibility, and the Quick start for what gets generated.