Ecotone DDD Aggregates
Implements Domain-Driven Design aggregates with state-stored or event-sourced persistence using the Ecotone Framework.
This skill provides specialized guidance for building robust domain models within the Ecotone Framework. It supports both traditional state-stored aggregates and event-sourced variants, offering patterns for command handler wiring, identity management, and lifecycle factory methods. By automating boilerplate for aggregate repositories and identifier mapping, it allows developers to focus on core business logic while maintaining clean DDD boundaries and architectural consistency.
Key Features
01Creation of state-stored and event-sourced DDD aggregate variants
02Automated command and query handler wiring directly on aggregate classes
03Standardized static factory methods for aggregate instantiation
0452 GitHub stars
05Smart identifier mapping with support for #[TargetIdentifier] and auto-resolution
06Event sourcing patterns including #[EventSourcingHandler] and versioning
Use Cases
01Implementing audit-ready systems using event-sourced domain models
02Modeling complex business entities with encapsulated state and logic
03Streamlining command handling logic within backend PHP services