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

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

speakeasy/serializer
====================

Temporary fork of JMS Serializer while upstream changes are being made.

4.0.3(1y ago)0537.5k—0.3%220MITPHPPHP ^7.4 || ^8.0

Since Aug 27Pushed 1y ago6 watchersCompare

[ Source](https://github.com/speakeasy-api/php-serializer)[ Packagist](https://packagist.org/packages/speakeasy/serializer)[ Docs](https://github.com/idbentley/serializer)[ GitHub Sponsors](https://github.com/goetas)[ RSS](/packages/speakeasy-serializer/feed)WikiDiscussions deserialize-unions-2 Synced 1mo ago

READMEChangelog (1)Dependencies (25)Versions (8)Used By (20)

> # UKRAINE NEEDS YOUR HELP NOW!
>
> [](#ukraine-needs-your-help-now)
>
> On 24 February 2022, Russian [President Vladimir Putin ordered an invasion of Ukraine by Russian Armed Forces](https://www.bbc.com/news/world-europe-60504334).
>
> Your support is urgently needed.
>
> - Donate to the volunteers. Here is the volunteer fund helping the Ukrainian army to provide all the necessary equipment:  or
> - Triple-check social media sources. Russian disinformation is attempting to coverup and distort the reality in Ukraine.
> - Help Ukrainian refugees who are fleeing Russian attacks and shellings:
> - Put pressure on your political representatives to provide help to Ukraine.
> - Believe in the Ukrainian people, they will not surrender, they don't have another Ukraine.
>
> THANK YOU!

---

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

[](#jmsserializer)

[![GitHub Actions](https://github.com/schmittjoh/serializer/workflows/CI/badge.svg)](https://github.com/schmittjoh/serializer/actions?query=workflow%3A%22CI%22+branch%3Amaster)[![Packagist](https://camo.githubusercontent.com/7b2cf449f31f9893ab2510aeae2e7e73c57dde78ecda53a235c828a271244064/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6d732f73657269616c697a65722e737667)](https://packagist.org/packages/jms/serializer)

[![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 3.x version, if you are interested in the 1.x or 2.x version, check the [1.x](https://github.com/schmittjoh/serializer/tree/1.x) and [2.x](https://github.com/schmittjoh/serializer/tree/2.x) branches.

The version `3.x` is the supported version (`master` branch). The `1.x` and `2.x` versions are not supported anymore.

For the `1.x` and `2.x` branches there will be no additional feature releases.
Security issues will be fixed till the 1st January 2020 and only critical bugs might receive fixes until the 1st September 2019.

Instructions on how to upgrade to 3.x are available in the [UPGRADING](https://github.com/schmittjoh/serializer/blob/master/UPGRADING.md) document.

Professional Support
--------------------

[](#professional-support)

For eventual paid support please write an email to .

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance44

Moderate activity, may be stable

Popularity39

Limited adoption so far

Community37

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52.2% 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 ~48 days

Total

5

Last Release

438d ago

Major Versions

v3.40.0 → v4.0.02024-10-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/562caa3d1b132355cc62015f803b56716fbd8d149e8a2a8960e2d3c07202b891?d=identicon)[ian-speakeasy](/maintainers/ian-speakeasy)

---

Top Contributors

[![goetas](https://avatars.githubusercontent.com/u/776743?v=4)](https://github.com/goetas "goetas (921 commits)")[![schmittjoh](https://avatars.githubusercontent.com/u/197017?v=4)](https://github.com/schmittjoh "schmittjoh (428 commits)")[![scyzoryck](https://avatars.githubusercontent.com/u/8014727?v=4)](https://github.com/scyzoryck "scyzoryck (41 commits)")[![idbentley](https://avatars.githubusercontent.com/u/403209?v=4)](https://github.com/idbentley "idbentley (30 commits)")[![dgafka](https://avatars.githubusercontent.com/u/6060791?v=4)](https://github.com/dgafka "dgafka (28 commits)")[![lsmith77](https://avatars.githubusercontent.com/u/300279?v=4)](https://github.com/lsmith77 "lsmith77 (28 commits)")[![adrienbrault](https://avatars.githubusercontent.com/u/611271?v=4)](https://github.com/adrienbrault "adrienbrault (25 commits)")[![simPod](https://avatars.githubusercontent.com/u/327717?v=4)](https://github.com/simPod "simPod (24 commits)")[![mbabker](https://avatars.githubusercontent.com/u/368545?v=4)](https://github.com/mbabker "mbabker (21 commits)")[![yethee](https://avatars.githubusercontent.com/u/559488?v=4)](https://github.com/yethee "yethee (20 commits)")[![Majkl578](https://avatars.githubusercontent.com/u/144181?v=4)](https://github.com/Majkl578 "Majkl578 (18 commits)")[![rosstuck](https://avatars.githubusercontent.com/u/146766?v=4)](https://github.com/rosstuck "rosstuck (16 commits)")[![supersmile2009](https://avatars.githubusercontent.com/u/25199815?v=4)](https://github.com/supersmile2009 "supersmile2009 (16 commits)")[![chregu](https://avatars.githubusercontent.com/u/47106?v=4)](https://github.com/chregu "chregu (15 commits)")[![joaojacome](https://avatars.githubusercontent.com/u/969041?v=4)](https://github.com/joaojacome "joaojacome (12 commits)")[![ruudk](https://avatars.githubusercontent.com/u/104180?v=4)](https://github.com/ruudk "ruudk (12 commits)")[![alcalyn](https://avatars.githubusercontent.com/u/1588144?v=4)](https://github.com/alcalyn "alcalyn (12 commits)")[![ajgarlag](https://avatars.githubusercontent.com/u/388184?v=4)](https://github.com/ajgarlag "ajgarlag (10 commits)")[![gam6itko](https://avatars.githubusercontent.com/u/3841197?v=4)](https://github.com/gam6itko "gam6itko (10 commits)")[![anyx](https://avatars.githubusercontent.com/u/354352?v=4)](https://github.com/anyx "anyx (9 commits)")

---

Tags

jsonxmlserializationdeserializationjaxb

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

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

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