Doctrine Elegant Entity Generator

•
5
•

Generates Doctrine entities and repositories following Elegant Objects principles for robust, maintainable PHP code.

This Claude Code skill automates the creation of high-quality Doctrine entities and their corresponding repositories within PHP and Symfony environments. Adhering to 'Elegant Objects' design philosophy, it enforces clean architecture patterns such as final classes, private constructors, and static factory methods while eliminating traditional setters in favor of immutability. The skill streamlines the development workflow by automatically handling UUID integration, implementing standardized traits (Database, Null, DependencyInjection), and ensuring all repository interfaces are correctly generated to maintain strict domain boundaries.

主な機能

01Enforces Elegant Objects principles to improve object-oriented design and testability
02Verifies and scaffolds project contract dependencies before generating entities
03Generates 'final' Doctrine entities with static factory methods and private constructors
04Creates both Repository classes and their respective interfaces automatically
05Includes automatic UUID support and standardized logging/database interfaces
065 GitHub stars

ユースケース

01Implementing clean architecture by decoupling entity implementations from repository interfaces
02Rapidly creating standardized, immutable data models with built-in UUID and logging support
03Scaffolding a new domain model in a Symfony project with strict OOP standards