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

Symfony:api Platform State Providers Skill

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

symfony:api-platform-state-providers is a Claude Code skill that customizes API Platform read/write pipelines with StateProvider and StateProcessor classes for non-trivial data sourcing and persistence in Symfony apps.

About

symfony:api-platform-state-providers is a Claude Code skill from makfly/superpowers-symfony that guides implementation of custom API Platform StateProvider and StateProcessor classes in Symfony. Developers use it when default Doctrine persistence is insufficient—aggregated reads, multi-source hydration, transactional writes, or side-effect hooks on create/update/delete. The skill covers provider/processor registration, DTO mapping, and pipeline ordering consistent with API Platform 3.x conventions. Reach for it while building REST or GraphQL resources that need bespoke data access without bypassing the API Platform state layer.

  • Implement custom StateProvider for complex reads
  • Build StateProcessor logic for writes and side effects
  • Decorate default providers without breaking metadata
  • Wire DTOs, entities, and external sources cleanly
  • Keep OpenAPI operations aligned with custom state

Symfony:Api Platform State Providers by the numbers

  • 431 all-time installs (skills.sh)
  • Ranked #1,030 of 4,492 Backend & APIs 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-state-providers

Add your badge

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

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

How do you customize API Platform state providers?

Customize API Platform read/write pipelines with custom StateProvider and StateProcessor classes for non-trivial data sourcing and persistence.

Who is it for?

Symfony developers building API Platform resources that need custom read aggregation, multi-source hydration, or non-Doctrine write side effects.

Skip if: Plain Symfony controllers without API Platform, front-end GraphQL clients, or CRUD resources fully satisfied by default Doctrine providers.

When should I use this skill?

A developer needs custom API Platform StateProvider or StateProcessor classes for non-trivial read sourcing or write persistence in a Symfony project.

What you get

StateProvider and StateProcessor PHP classes, service tags, and wired read/write pipeline for API Platform resources

  • StateProvider PHP class
  • StateProcessor PHP class
  • Registered API Platform read/write pipeline

Files

SKILL.mdMarkdownGitHub ↗

Api Platform State Providers (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

When do Symfony developers need custom StateProviders?

symfony:api-platform-state-providers applies when default Doctrine providers cannot serve aggregated reads, multi-source hydration, or computed fields. Custom StateProvider classes plug into API Platform's read pipeline without abandoning the state abstraction.

What does a StateProcessor handle in API Platform?

A StateProcessor in API Platform executes write-side persistence and side effects on create, update, or delete. symfony:api-platform-state-providers guides Symfony service registration and transactional write logic beyond standard Doctrine flush behavior.

Backend & APIsbackendintegrations

This week in AI coding

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

unsubscribe anytime.