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

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

bogosoft/serialization
======================

Serialization-related contracts and implementations for PHP.

1.0.0(6y ago)010MITPHPPHP &gt;=7.1CI failing

Since Dec 24Pushed 6y ago1 watchersCompare

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

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

bogosoft/serialization
----------------------

[](#bogosoftserialization)

A library of contracts and simple implementations for serializing and deserializing data.

#### Requirements

[](#requirements)

- PHP 7.1+

#### Installation

[](#installation)

```
composer install bogosoft/serialization
```

#### Interfaces

[](#interfaces)

Interface NameDescription`IDeserializer`A strategy for deserializing data from an input stream.`ISerializer`A strategy for serializing data to an output stream.#### Implementations

[](#implementations)

Implementation NameDescription`JsonSerializer`A JSON serializer/deserializer.`PhpSerializer`A serializer/deserializer implementation that relies on PHP's `serialize` and `unserialize` functions.#### Example Usage

[](#example-usage)

```
$serializer = new \Bogosoft\Serialization\PhpSerializer();

$expected = 'Hello, World!';

$handle = fopen('php://memory', 'r+b');

$serialization = $serializer->serialize($handle, $expected);

fseek($handle, 0);

$actual = $serializer->deserialize($handle);

var_dump($actual === $expected); # outputs: bool(true)
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity52

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2336d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8530564fb9452a6b97b54c5cfd4da24f7f69667c217b8e37f99a593966029cdd?d=identicon)[bogocles](/maintainers/bogocles)

---

Tags

jsonserialization

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[jms/serializer

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

2.3k135.8M851](/packages/jms-serializer)[jms/serializer-bundle

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

1.8k89.3M627](/packages/jms-serializer-bundle)[sbsaga/toon

🧠 TOON for Laravel — a compact, human-readable, and token-efficient data format for AI prompts &amp; LLM contexts. Perfect for ChatGPT, Gemini, Claude, Mistral, and OpenAI integrations (JSON ⇄ TOON).

6115.6k](/packages/sbsaga-toon)

PHPackages © 2026

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