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

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

jeroenvdheuve/serialization
===========================

Unserializes php serialized strings and is able the process class that are not loaded

08[1 PRs](https://github.com/jeroenvdheuvel/serialization/pulls)PHP

Since Feb 10Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/jeroenvdheuvel/serialization)[ Packagist](https://packagist.org/packages/jeroenvdheuve/serialization)[ RSS](/packages/jeroenvdheuve-serialization/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

README
======

[](#readme)

Description
-----------

[](#description)

This library provides the ability to unserialize and re-serialize php serialized data. Unlike the php unserializer, this library is not creating the actual objects that were serialized. Therefore no error will be thrown when the serialized class could not be found. This can come in handy when using multiple applications share data via php serialization.

Master: [![Build Status](https://camo.githubusercontent.com/eefbcab84a90d8b6966a94332dab4353d00cbacee217e08bdcc77eb3b1ffceb6/68747470733a2f2f7472617669732d63692e6f72672f6a65726f656e766468657576656c2f73657269616c697a6174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jeroenvdheuvel/serialization)

Known issues
------------

[](#known-issues)

HHVM is not able to serialize references containing objects. References containing objects, will be serialized as a copy/reference pointing to the same object but not to the same variable.

For instance:

```
$o = new stdClass();
echo serialize(array(&$o, &$o))
```

Should echo `a:2:{i:0;O:8:"stdClass":0:{}i:1;R:2;}` when references are properly supported. HHVM will echo `a:2:{i:0;O:8:"stdClass":0:{}i:1;r:2;}`. Lowercase `r` means it's not a reference to the same variable. It's only pointing to the same object.

HHVM does support variables containing references. For instance:

```
$i = 1;
echo serialize(array(&$i, &$i));
```

Will echo `a:2:{i:0;i:1;i:1;R:2;}` in both PHP and HHVM.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance58

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/37301ff25cf2c512e7c1079160028e6e4c27194b6ba6d44aa52213ba2e3feaac?d=identicon)[jeroenvdheuvel](/maintainers/jeroenvdheuvel)

### Embed Badge

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

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

###  Alternatives

[mwgg/airports

A JSON collection of ~29k entries with basic information about nearly every airport and landing strip in the world

7683.4k](/packages/mwgg-airports)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9845.4k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

46164.0k6](/packages/jstewmc-rtf)[glauberportella/cnab-layouts-parser

Parser de arquivos de configuração CNAB gerados no projeto https://github.com/glauberportella/cnab-layouts

2154.5k](/packages/glauberportella-cnab-layouts-parser)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.4k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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