Library for (de-)serializing data of any complexity; supports XML, JSON, and YAML.

Installs: 28 028 459

Dependents: 656

Suggesters: 74

Stars: 1 451

Watchers: 45

Forks: 497

Open Issues: 107

2.3.0 2019-04-17 08:03 UTC


Build status Coverage Status

alt text


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.x is the active and supported version (master branch).
  • 2.x is not supported anymore (2.x branch).
  • 1.x is in maintenance mode, there will be no active development but PRs are accepted (1.x branch).

Bug fixes sent on the 1.x branch, will be ported to the master branch when possible.