PHPackages                             wizacode/php-error-proof-unserializer - 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. wizacode/php-error-proof-unserializer

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

wizacode/php-error-proof-unserializer
=====================================

last chance php unserializer

1.1(4y ago)19MITPHPPHP ~7.4|~8.0

Since May 9Pushed 4y ago2 watchersCompare

[ Source](https://github.com/wizacode/php-error-proof-unserializer)[ Packagist](https://packagist.org/packages/wizacode/php-error-proof-unserializer)[ RSS](/packages/wizacode-php-error-proof-unserializer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (6)Used By (0)

PHP error proof unserializer
============================

[](#php-error-proof-unserializer)

Intro
-----

[](#intro)

```
Notice:  unserialize(): Error at offset ... of ... bytes ...
```

You can try this to unserialize a corrupted serialized string.

Usage
-----

[](#usage)

```
use Wizacode\ErrorProofUnserializer\ErrorProofUnserializer;

// Attempt to unserialize a corrupted serialized string:

$recoveredUnserializedData = ErrorProofUnserializer::process($brokenSerializedString);

// Or only fix the serialized string:

$fixedSerializedData = ErrorProofUnserialize::fix($brokenSerializedString);
```

P.S.: Don't record php serialized data in a RDBMS (or use at least a binary safe storage type)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.9% 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 ~1 days

Total

3

Last Release

1468d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/20cac7e5f4afa44ddffb53b1357681564281c035d5831b9b45f22eebeb77548f?d=identicon)[leNEKO](/maintainers/leNEKO)

---

Top Contributors

[![leNEKO](https://avatars.githubusercontent.com/u/55792?v=4)](https://github.com/leNEKO "leNEKO (13 commits)")[![Nicolas-Masson-Wizaplace](https://avatars.githubusercontent.com/u/44770402?v=4)](https://github.com/Nicolas-Masson-Wizaplace "Nicolas-Masson-Wizaplace (1 commits)")

---

Tags

charsetphprecoverserializeunserializeutf-8phperrorunserializerecoverstring length

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/wizacode-php-error-proof-unserializer/health.svg)

```
[![Health](https://phpackages.com/badges/wizacode-php-error-proof-unserializer/health.svg)](https://phpackages.com/packages/wizacode-php-error-proof-unserializer)
```

###  Alternatives

[nikic/phlexy

Lexing experiments in PHP

162570.9k13](/packages/nikic-phlexy)[corveda/php-sandbox

A PHP library that can be used to run PHP code in a sandboxed environment

23483.5k2](/packages/corveda-php-sandbox)[bupy7/xml-constructor

The array-like constructor of XML document structure.

1337.9k](/packages/bupy7-xml-constructor)

PHPackages © 2026

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