jms/serializer

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

1.11.0 2018-02-04 17:48 UTC

README

Master 1.x
Build status Build status
Coverage Status Coverage Status

You are browsing the code of upcoming 2.0 release, if you are interested in the 1.x series, check the 1.x branch.

Differences between the 1.x and 2.x series can be found in the CHANGELOG.

If you are submitting a pull request, until the 2.0 is not released submit it targeting the 1.x branch. Accepted pull request will be ported to the 2.0 release when possible.

Introduction

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

Documentation

Learn more about the serializer in its documentation.