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

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

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

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

08PHP

Since Feb 10Pushed 11y ago1 watchersCompare

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

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

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

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

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M47](/packages/mck89-peast)[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.

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

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

45153.1k6](/packages/jstewmc-rtf)[tcds-io/php-jackson

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

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

PHPackages © 2026

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