PHPackages                             jedi58/reserializer - 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. jedi58/reserializer

ActiveLibrary

jedi58/reserializer
===================

v1.0.1(8y ago)264[1 issues](https://github.com/jedi58/reserializer/issues)MITPHPPHP &gt;=5.5.9CI failing

Since Feb 20Pushed 5y ago2 watchersCompare

[ Source](https://github.com/jedi58/reserializer)[ Packagist](https://packagist.org/packages/jedi58/reserializer)[ Docs](https://github.com/jedi58/reserializer)[ RSS](/packages/jedi58-reserializer/feed)WikiDiscussions main Synced 1mo ago

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

Reserializer
============

[](#reserializer)

[![Build Status](https://camo.githubusercontent.com/3ad0b170f64a9a0fba5016e409f9650f4c15a3cc67c6df7f419cdd3912a976c5/68747470733a2f2f7472617669732d63692e6f72672f6a65646935382f526573657269616c697a65722e737667)](https://travis-ci.org/jedi58/Reserializer)[![StyleCI](https://camo.githubusercontent.com/8be52f194f531f94c9735cb99b14d9e2e1b50d4fe906aaa19adfe29c1329639f/68747470733a2f2f7374796c6563692e696f2f7265706f732f35323039343133392f736869656c64)](https://styleci.io/repos/52094139)[![Code Climate](https://camo.githubusercontent.com/dc1c010098bae8fd70209ee644ab649b0de24d9654f020d72c88f6f3e67592b2/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6a65646935382f526573657269616c697a65722f6261646765732f6770612e737667)](https://codeclimate.com/github/jedi58/Reserializer)[![Coverage Status](https://camo.githubusercontent.com/5edebcc2e3814b2bfcd0aceb00bc17047bf77bb2f6ee2abcb6a763c5b1a00e80/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6a65646935382f526573657269616c697a65722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/jedi58/Reserializer?branch=master)

PHP class that will take a serialised object and parse it, ignoring the sizes specified. This is useful when serialized objects are corrupted and need fixing

Usage
-----

[](#usage)

```
Reserializer::parse('s:21:"https://www.google.com";');
```

The above example contains an invalid serialized object as the string is one character longer than it should be. The `parse` function will take this, ignore the suggested length and will return the string ready to be reserialised. Alternatively, the class can do the whole process itself:

```
Reserializer::reserialize('s:21:"https://www.google.com";')
```

The expected output for this is `s:22:"https://www.google.com";`. It is possible to use this for more complicated examples of type bool, int, string, array, and objects. In the case of objects they will however be converted into `stdClass`.

Testing
-------

[](#testing)

There are a number of unit tests which can be executed by running the following from your checkout

```
$  phpunit
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

2944d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3289445da9b8e1b2006149336a3d9700471e98095881635adebdb9760bc7c471?d=identicon)[jedi58](/maintainers/jedi58)

---

Top Contributors

[![jedi58](https://avatars.githubusercontent.com/u/99506?v=4)](https://github.com/jedi58 "jedi58 (41 commits)")

---

Tags

dataserializeobjectsfix

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jedi58-reserializer/health.svg)

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

###  Alternatives

[doctrine/mongodb-odm

PHP Doctrine MongoDB Object Document Mapper (ODM) provides transparent persistence for PHP objects to MongoDB.

1.1k23.3M301](/packages/doctrine-mongodb-odm)[doctrine/phpcr-odm

PHP Doctrine Content Repository Object Document Mapper (ODM) provides transparent persistence for PHP objects.

1811.5M97](/packages/doctrine-phpcr-odm)[trappar/alice-generator-bundle

Symfony bundle for generating Alice fixtures from Doctrine entities

45169.6k1](/packages/trappar-alice-generator-bundle)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)[whikloj/bagittools

A PHP library to manipulate and verify BagIt bags.

1220.5k2](/packages/whikloj-bagittools)[smrtr/mysql-version-control

A crude version control system for mysql written in php

221.4k](/packages/smrtr-mysql-version-control)

PHPackages © 2026

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