php-symfony-api-platform-serialization
CommunityShape API responses with groups and normalizers.
AuthorLounisBou
Version1.0.0
Installs0
System Documentation
What problem does it solve?
In modern Symfony applications using API Platform, developers often struggle to keep API response shapes consistent across resources, roles, and contexts. This skill centralizes serialization control by organizing groups, normalizers, and context logic into a cohesive pattern.
Core Features & Use Cases
- Define serialization groups across entities to selectively include or expose fields based on operation and role.
- Implement custom normalizers to compute derived fields and format data without polluting entity models.
- Use context builders and dynamic groups to adapt outputs for different users, requests, or client types.
- Manage nested relationships with depth controls and ignore rules to prevent data leakage.
Quick Start
Configure your Symfony/API Platform project to enable normalizationContext groups, implement a custom normalizer, and add a context builder to switch groups based on user roles.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: php-symfony-api-platform-serialization Download link: https://github.com/LounisBou/claude-code/archive/main.zip#php-symfony-api-platform-serialization Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.