PHPackages                             unitedprint/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. unitedprint/serializer

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

unitedprint/serializer
======================

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

2.0.2(4y ago)09.2kMITPHPPHP &gt;=7.2

Since Apr 14Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Mahmoud-Italy/unitedprint-serializer)[ Packagist](https://packagist.org/packages/unitedprint/serializer)[ Docs](http://jmsyst.com/libs/serializer)[ RSS](/packages/unitedprint-serializer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (18)Versions (5)Used By (0)

jms/serialzer
=============

[](#jmsserialzer)

[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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~0 days

Total

4

Last Release

1494d ago

Major Versions

1.0 → 2.02022-04-14

PHP version history (2 changes)1.0PHP ^7.2

2.0.1PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17962343?v=4)[Mahmoud Ahmed](/maintainers/Mahmoud-Italy)[@Mahmoud-Italy](https://github.com/Mahmoud-Italy)

---

Top Contributors

[![Mahmoud-Italy](https://avatars.githubusercontent.com/u/17962343?v=4)](https://github.com/Mahmoud-Italy "Mahmoud-Italy (9 commits)")

---

Tags

jsonxmlserializationdeserializationjaxb

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/unitedprint-serializer/health.svg)](https://phpackages.com/packages/unitedprint-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)
