PHPackages                             prolix/serializer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. prolix/serializer

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

prolix/serializer
=================

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

2.1.8(6y ago)02411MITPHPPHP ^7.2

Since Jan 29Pushed 6y ago2 watchersCompare

[ Source](https://github.com/prolixtechnikos/serializer)[ Packagist](https://packagist.org/packages/prolix/serializer)[ Docs](http://jmsyst.com/libs/serializer)[ RSS](/packages/prolix-serializer/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (8)Dependencies (18)Versions (54)Used By (1)

jms/serializer
==============

[](#jmsserializer)

[Master](https://travis-ci.org/schmittjoh/serializer)[1.x](https://github.com/schmittjoh/serializer/tree/1.x)[![Build status](https://camo.githubusercontent.com/d61aca2829c06c81c20ab3c5f8bde6987e410929640fa257b914009a3cbaf7df/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7363686d6974746a6f682f73657269616c697a65722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/schmittjoh/serializer)[![Build status](https://camo.githubusercontent.com/64e34935f55000e7811ffb76ce7a1c517b65d918413cc44b369edd7c02c23699/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7363686d6974746a6f682f73657269616c697a65722f312e782e7376673f7374796c653d666c61742d737175617265)](https://github.com/schmittjoh/serializer/tree/1.x)[![Coverage Status](https://camo.githubusercontent.com/0d6ede36a9c89a3e9679b0fbbe4524ea9f2576c264b12139402a5585027f5738/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7363686d6974746a6f682f73657269616c697a65722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/schmittjoh/serializer/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/a80d566448b5b18848a736fd8831390d1dafcfcd0ba688756b5015d601138866/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7363686d6974746a6f682f73657269616c697a65722f312e782e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/schmittjoh/serializer/?branch=1.x)[![alt text](doc/logo-small.png)](doc/logo-small.png)

Introduction
------------

[](#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
-------------

[](#documentation)

Learn more about the serializer in its [documentation](http://jmsyst.com/libs/serializer).

Notes
-----

[](#notes)

You are browsing the code for the 2.x version, if you are interested in the 1.x version, check the [1.x](https://github.com/schmittjoh/serializer/tree/1.x) branch.

Differences between the 1.x and 2.x can be found in the [CHANGELOG](https://github.com/schmittjoh/serializer/blob/master/CHANGELOG.md). Upgrading from 1.x to 2.x should be almost transparent for most of the userland code, in the
case you have heavily used internal-api or you are relaying on some of the removed features, the [UPGRADING](https://github.com/schmittjoh/serializer/blob/master/UPGRADING.md) document is a short guide on how to upgrade.

Pull requests for new features are accepted only on the master branch. Bug fixes are accepted for both master and 1.x branches. Bug fixes sent on the 1.x branch, will be ported to the master branch when possible.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity72

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~55 days

Recently: every ~84 days

Total

46

Last Release

2341d ago

Major Versions

0.16.0 → 1.0.02015-06-16

1.x-dev → 2.0.0-beta12018-09-12

PHP version history (5 changes)0.11.0PHP &gt;=5.3.2

1.0.0PHP &gt;=5.4.0

1.2.0PHP &gt;=5.5.0

1.11.0PHP ^5.5|^7.0

2.0.0-beta1PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f7ebbb7fd8d5bed650ff90bfa01d5c9962199a26d76f25439702a1ab92e4caf?d=identicon)[kuldippujara](/maintainers/kuldippujara)

---

Tags

jsonxmlserializationdeserializationjaxb

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/prolix-serializer/health.svg)

```
[![Health](https://phpackages.com/badges/prolix-serializer/health.svg)](https://phpackages.com/packages/prolix-serializer)
```

###  Alternatives

[jms/serializer

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

2.3k135.8M851](/packages/jms-serializer)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
