PHP DDD Aggregate Generator

•
45
•

Generates domain-driven design (DDD) aggregates for PHP 8.4 with root entities, domain events, and automated unit tests.

This skill automates the creation of complex domain models following strict DDD principles in PHP 8.4 environments. It enforces architectural patterns such as consistency boundaries, transactional integrity, and encapsulation by generating the Aggregate Root, child entities, and necessary domain events while providing a standardized directory structure. It is ideal for developers building enterprise-grade applications with Hexagonal or Clean Architecture who need to ensure high-quality code standards and maintainable domain logic.

주요 기능

0145 GitHub stars
02Enforces strict DDD consistency boundaries and transactional integrity
03Ensures proper encapsulation by preventing public setters and using behavioral methods
04Automatically scaffolds Domain Events for state changes and behavioral actions
05Includes automated unit test generation to verify domain invariants and logic
06Generates PHP 8.4 compliant Aggregate Roots with built-in event recording

사용 사례

01Scaffolding complex domain entities in enterprise PHP applications
02Implementing Event Sourcing or CQRS patterns with consistent domain events
03Refactoring anemic domain models into rich, behavior-driven DDD aggregates