PHP DDD Entity Generator

•
45
•

Generates robust PHP 8.4 Domain-Driven Design entities with identity, state management, and automated unit tests.

This skill automates the creation of high-quality Domain-Driven Design (DDD) entities specifically tailored for PHP 8.4 environments. It helps developers move beyond anemic data models by generating identity-based objects that encapsulate domain logic, enforce business invariants, and manage complex state transitions using typed enums. The skill ensures architectural consistency by producing not just the entity, but also the required status enums, custom domain exceptions, and comprehensive unit tests, making it indispensable for projects following Clean or Hexagonal architecture.

Características Principales

0145 GitHub stars
02Business invariant protection through internal guard clauses
03Generation of companion unit tests for behavior and state
04Standardized file structure for entities, enums, and exceptions
05PHP 8.4 DDD entity generation with identity-based logic
06Automated state transition management using Status Enums

Casos de Uso

01Scaffolding complex domain models in Hexagonal or Clean Architecture projects
02Refactoring anemic data structures into behavior-rich domain entities
03Implementing strict state machines for business objects like Orders, Invoices, or User Accounts