A bundle for the Symfony 2-framework that allows you to serialize objects into a variety of output formats (such as YAML, XML or JSON).
JMSSerializerBundle is a bundle for the Symfony 2-framework, but can also be incorporated as a standalone component. It allows you to serialize your objects into a requested output format such as JSON, XML, or YAML, and vice versa. It provides you with a rich toolset which empowers you to adapt the output to your specific needs.
Built-in features include:
- (de-)serialize object graphs of any complexity including circular references
- supports many built-in PHP types (such as dates)
- integrates with Doctrine ORM, et. al.
- supports versioning, e.g. for APIs
- configurable via PHP, XML, YAML, or annotations
JMSSerializerBundle is created by Johannes Schmitt, and available on GitHub as well as on jmsyst.com/bundles