API Platform Resource Generator
Generates production-ready API Platform resources with serialization groups, CRUD operations, and Symfony validation.
This skill automates the creation of high-quality API Platform resources within Symfony projects, allowing developers to quickly scaffold or enhance entities and DTOs using industry-standard patterns. It guides users through selecting exposure strategies—such as Direct Entity mapping or separate DTOs—defining specific CRUD operations, and implementing robust serialization groups (read, write, list). By enforcing best practices like explicit PHP 8.1+ attribute declarations and integrated validation constraints, it ensures that your API remains secure, performant, and maintainable.
主な機能
01Configurable CRUD operation sets (Full CRUD, Read-only, Write-only, or Custom)
02Automated setup of granular serialization groups (read, write, list)
030 GitHub stars
04Supports both Direct Entity and separate DTO exposure strategies
05Integrated Symfony validation mapping (Email, NotBlank, Length, etc.)
06Automatic project namespace detection via composer.json analysis
ユースケース
01Adding API Platform functionality and serialization to an existing Doctrine entity
02Rapidly bootstrapping a new REST API endpoint from a simple entity name
03Implementing the DTO pattern with scaffolding for custom State Providers and Processors