jms/serializer
Powerful PHP serializer/deserializer for complex object graphs, with JSON/XML support, circular reference handling, rich exclusion strategies, versioning, and built-in type handlers. Configurable via annotations, YAML, or XML; integrates with Doctrine ORM.
jms/serializer is a powerful PHP library to serialize and deserialize complex object graphs to JSON or XML. It’s designed for real-world applications where you need fine-grained control over output formats, compatibility across API versions, and safe handling of tricky cases like circular references.
Configure mappings via annotations, YAML, or XML, and integrate smoothly with common ecosystems (including Doctrine ORM) to tailor payloads to your domain model.
How can I help you explore Laravel packages today?