Api platform crud

From VilnaCRM-Org/php-service-template · View interactive version

Api platform crud is an AI agent skill from the GitHub repository VilnaCRM-Org/php-service-template. Add or extend API Platform resources in php-service-template using DDD and CQRS-friendly patterns.

How to use this skill

Skill file

API Platform CRUD

Goal

Implement REST resources without leaking framework concerns into Domain classes.

Pattern

  1. Create or update the Domain entity.
  2. Keep persistence metadata in XML mapping under config/doctrine/.
  3. Add API Platform resource configuration under config/api_platform/ or config/routes/.
  4. Use DTOs, processors, and handlers for write flows when the behavior is more than trivial CRUD.
  5. Regenerate exported specs.

Rules

Verification

make generate-openapi-spec
make generate-graphql-spec
make setup-test-db
make unit-tests
make integration-tests
make behat
make deptrac

Use openapi-development and documentation-sync as follow-up skills when needed.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.