symfony-serializer
Installation
SKILL.md
symfony/serializer
If the project contains
.ddev/config.yaml, prefix every shell command withddev(full mapping in thesymfonyskill'sreferences/ddev.md). Examples target Symfony 7.4, 8.0 and newer — verify the installed version before using newer features.
When to use
You need to convert objects to/from JSON, XML, CSV, or YAML — REST APIs, queue payloads, config dumps.
Replaces
- JMS Serializer (
jms/serializer) json_encode/json_decode+ manual object hydration- Hand-rolled
toArray()/fromArray()on every DTO