How this skill is triggered — by the user, by Claude, or both
Slash command
/php:make-factorysonnetThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**IMPORTANT : Exécute ce workflow étape par étape :**
IMPORTANT : Exécute ce workflow étape par étape :
Génère une Factory Foundry pour créer des instances d'entités dans les tests.
Use skill php:make-factory
defaults()src/Entity/{EntityName}.phpsrc/Factory/{EntityName}Factory.phpcreate()templates/Factory/finalclass() retournant FQCNdefaults() avec valeurs Fakerinitialize() avec instantiateWith() appelant Entity::create()withSpecificId(), inactive())instantiateWith() pour respecter Elegant Objects (pas de new Entity())self::faker()withoutPersisting() si besoinnpx claudepluginhub atournayre/claude-personas --plugin phpGenerates DDD-compliant factories for PHP 8.4 domain objects, encapsulating complex creation logic with input validation and unit tests. Ideal for intricate entity instantiation, aggregates, and reconstruction from persistence.
Creates test data using Zenstruck Foundry v2 factories (PersistentObjectFactory) for Symfony/Doctrine fixtures. Supports states, sequences, and relationships; helps design entity relations and improve Doctrine performance.
Builds maintainable test data using factory functions, builder pattern, and faker.js. Reduces duplication and generates realistic fake data for unit, integration, and snapshot tests.