This library allows you to (de-)serialize data of any complexity. Currently, it supports XML and JSON.
It also provides you with a rich tool-set to adapt the output to your specific needs.
Built-in features include:
- (De-)serialize data of any complexity; circular references and complex exclusion strategies are handled gracefully.
- Supports many built-in PHP types (such as dates, intervals)
- Integrates with Doctrine ORM, et. al.
- Supports versioning, e.g. for APIs
- Configurable via XML, YAML, or Annotations
Learn more about the serializer in its documentation.
You are browsing the code for the 3.x version, if you are interested in the 1.x or 2.x version, check the 1.x and 2.x branches.
Instructions on how to upgrade available in the UPGRADING document.
3.xis the active and supported version (masterbranch).2.xis not supported anymore (2.xbranch).1.xis in maintenance mode, there will be no active development but PRs are accepted (1.xbranch).
Bug fixes sent on the 1.x branch, will be ported to the master branch when possible.