symfonyapi-platform-serialization

MakFly's avatarfrom MakFly

Control API output with serialization groups, custom normalizers, and context-aware serialization in API Platform

⭐26stars🔀4forks📁View on GitHub🕐Updated Dec 30, 2025

When & Why to Use This Skill

This Claude skill provides expert assistance in managing data serialization for Symfony API Platform projects. It helps developers precisely control API outputs using serialization groups, custom normalizers, and context-aware logic to ensure secure, optimized, and well-structured data delivery.

Use Cases

  • Configuring serialization groups to manage field-level visibility and prevent sensitive data exposure based on user roles.
  • Developing custom normalizers to handle complex data transformations and ensure consistent API response formats for non-standard objects.
  • Implementing context-aware serialization to dynamically adjust API payloads based on the request context, improving performance by reducing unnecessary data transfer.
namesymfony:api-platform-serialization
descriptionUse when symfony api platform serialization

symfony:api-platform-serialization (Micro)

Use when

  • Use when symfony api platform serialization

Rules

  • Keep changes minimal and focused
  • Ask before running servers/builds/tests
  • Load reference/examples only on explicit request

References

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