PHPackages                             treehouselabs/serialization - 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. treehouselabs/serialization

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

treehouselabs/serialization
===========================

2.0(9y ago)199813MITPHPPHP &gt;=7.0

Since Sep 6Pushed 9y ago7 watchersCompare

[ Source](https://github.com/treehouselabs/serialization)[ Packagist](https://packagist.org/packages/treehouselabs/serialization)[ RSS](/packages/treehouselabs-serialization/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (3)

Serialization
=============

[](#serialization)

[![Latest Version on Packagist](https://camo.githubusercontent.com/30c13bb3fb2af31d690f7946404f1fda42366464b36f90dcdf6acfa297d00e22/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74726565686f7573656c6162732f73657269616c697a6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/treehouselabs/serialization)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/86a98e1ae9b29eb04d79c6a94524c92bab6a0036f85624bcfd263c8e67c3a2e9/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f74726565686f7573656c6162732f73657269616c697a6174696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/treehouselabs/serialization)[![Coverage Status](https://camo.githubusercontent.com/f34cf14c62ea9573f887fd7656959689a3ec50c8cdcf6f0b45d96dc2c348472c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f74726565686f7573656c6162732f73657269616c697a6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/treehouselabs/serialization/code-structure)[![Quality Score](https://camo.githubusercontent.com/fd3fcc4707b4ab49a29a5d43391277eba84df21b9fd8e188939f9a5e719b1465/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f74726565686f7573656c6162732f73657269616c697a6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/treehouselabs/serialization)

Installation
------------

[](#installation)

```
composer require treehouselabs/serialization
```

Documentation
-------------

[](#documentation)

Set of contracts to implement serialization.

Testing
-------

[](#testing)

```
composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Credits
-------

[](#credits)

- [Jeroen Fiege](https://github.com/fieg)
- [Mark van Duijker](https://github.com/mvanduijker)
- [Marco Janssen](https://github.com/marcojanssen)
- [All Contributors](../../contributors)

###  Health Score

31

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~175 days

Total

2

Last Release

3454d ago

Major Versions

1.0 → 2.02017-02-28

PHP version history (2 changes)1.0PHP &gt;=5.6

2.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/49e70c4936c5121b835d48680dcf4bb57d21724c533dd99591e80101e4a25dd6?d=identicon)[pkruithof](/maintainers/pkruithof)

![](https://www.gravatar.com/avatar/aa2b08ed7a87334a1a0b8e302759c3587e4cbea1a1efb08f23d55cd04d1ccfc0?d=identicon)[marcojanssen](/maintainers/marcojanssen)

---

Top Contributors

[![fieg](https://avatars.githubusercontent.com/u/1086908?v=4)](https://github.com/fieg "fieg (1 commits)")[![mvanduijker](https://avatars.githubusercontent.com/u/1771206?v=4)](https://github.com/mvanduijker "mvanduijker (1 commits)")

---

Tags

serializerserialization

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/treehouselabs-serialization/health.svg)

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

###  Alternatives

[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k236.7M348](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k280.1M360](/packages/masterminds-html5)[jms/serializer

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

2.3k144.1M959](/packages/jms-serializer)[jms/serializer-bundle

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

1.8k93.5M694](/packages/jms-serializer-bundle)[flix-tech/avro-serde-php

A library to serialize and deserialize Avro records making use of the confluent schema registry

674.3M22](/packages/flix-tech-avro-serde-php)[goetas-webservices/xsd2php-runtime

Convert XSD (XML Schema) definitions into PHP classes

4913.3M48](/packages/goetas-webservices-xsd2php-runtime)

PHPackages © 2026

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