Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
makfly avatar

Symfony:api Platform Dto Resources Skill

  • 425 installs
  • 190 repo stars
  • Updated August 6, 2026
  • makfly/superpowers-symfony

symfony:api-platform-dto-resources is a Symfony agent skill that models API Platform resources with DTO input and output objects so developers expose clean REST contracts without leaking Doctrine entities.

About

symfony:api-platform-dto-resources is a makfly/superpowers-symfony skill for PHP engineers using Symfony and API Platform who need decoupled REST contracts. It guides modeling resources with dedicated DTO classes for request input and response output instead of exposing Doctrine entities directly across API boundaries. Developers reach for this skill when designing Create, Read, Update endpoints that require validation layers, field whitelisting, or version-stable JSON shapes. The pattern prevents entity graphs, lazy-loading surprises, and internal schema drift from appearing in public APIs. Use it during backend implementation when API Platform resource classes need explicit DTO mapping.

  • API Platform DTO resources
  • input/output separation
  • serializer mapping
  • entity leak prevention
  • REST contract hygiene

Symfony:Api Platform Dto Resources by the numbers

  • 425 all-time installs (skills.sh)
  • Ranked #21 of 68 PHP & Laravel skills by installs in the Skillselion catalog
  • Data as of Aug 11, 2026 (Skillselion catalog sync)
npx skills add https://github.com/makfly/superpowers-symfony --skill symfonyapi-platform-dto-resources

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs425
repo stars190
Last updatedAugust 6, 2026
Repositorymakfly/superpowers-symfony

How do you expose DTOs in API Platform Symfony?

Model API Platform resources with DTO input/output objects in Symfony when exposing clean REST contracts without leaking Doctrine entities across layers.

Who is it for?

Symfony developers exposing API Platform REST endpoints who must hide Doctrine entities behind DTO layers.

Skip if: Non-PHP stacks or Symfony apps serving entities directly without API Platform or DTO separation needs.

When should I use this skill?

Implementing API Platform endpoints that need DTO input/output instead of Doctrine entity serialization.

What you get

API Platform resource definitions with DTO input/output classes and decoupled REST JSON contracts.

Files

SKILL.mdMarkdownGitHub ↗

Api Platform Dto Resources (Symfony)

Use when

  • Designing or evolving API Platform contracts and operations.
  • Aligning serialization, validation, and security behavior.

Default workflow

1. Define operation-level contract and payload boundaries. 2. Implement resource/DTO/provider/processor changes with explicit mapping. 3. Apply operation-specific validation and security constraints. 4. Validate functional behavior across happy and negative paths.

Guardrails

  • Keep API contract explicit and version-aware.
  • Avoid exposing internal entity fields implicitly.
  • Prevent drift between docs and actual serialization.

Progressive disclosure

  • Use this file for execution posture and risk controls.
  • Open references when deep implementation details are needed.

Output contract

  • API artifacts changed (resource/DTO/provider/processor).
  • Contract/security decisions and rationale.
  • Functional verification results.

References

  • reference.md
  • docs/complexity-tiers.md

Related skills

FAQ

Why use DTO resources in API Platform?

symfony:api-platform-dto-resources teaches DTO input and output objects so Symfony REST endpoints return stable JSON without exposing Doctrine entities. The skill prevents internal persistence models from leaking across API layers.

When should Symfony developers invoke this skill?

Developers should invoke symfony:api-platform-dto-resources when defining API Platform resources that need validated request DTOs and response DTOs. The makfly superpowers-symfony skill fits new endpoint design and entity decoupling refactors.

PHP & Laravelbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.