PHP Value Object Generator
Generates immutable, self-validating DDD Value Objects and unit tests for PHP 8.4 applications.
This skill automates the creation of robust Domain-Driven Design (DDD) Value Objects following PHP 8.4 best practices. It ensures domain integrity by generating final readonly classes that encapsulate validation logic and equality comparison, eliminating the need for repetitive boilerplate. By providing standardized templates for common types like Email, Money, and UUIDs, it helps developers implement clean architecture and SOLID principles while maintaining high test coverage with automatically generated PHPUnit test suites.
主な機能
01PHP 8.4 final readonly class implementation for native immutability
02Self-validating constructors to prevent invalid domain states
0345 GitHub stars
04Pre-configured templates for complex types like Money, DateRange, and UUIDs
05Automated PHPUnit test generation with valid and invalid case coverage
06Standardized equality comparison and string conversion methods
ユースケース
01Implementing Domain-Driven Design (DDD) in PHP microservices or monolithic applications
02Ensuring type safety and data integrity across different Bounded Contexts
03Rapidly scaffolding robust, testable domain models during initial development phases