PHPackages                             stratadox/deserializer-contracts - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. stratadox/deserializer-contracts

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

stratadox/deserializer-contracts
================================

v0.3(5y ago)02243MITPHPPHP &gt;=7.2

Since Jun 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Stratadox/DeserializerContracts)[ Packagist](https://packagist.org/packages/stratadox/deserializer-contracts)[ RSS](/packages/stratadox-deserializer-contracts/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (3)

Deserializer Contracts
======================

[](#deserializer-contracts)

Contracts for [deserializing](https://github.com/Stratadox/Deserializer)input data.

A [deserializer](src/Deserializer.php) converts serialized data into objects.

Serialized input data is provided in the form of an array, either numeric or associative. It can come from various sources, be it a json document, a relational database or other source.

Deserializers can be configured and combined to transform one or more data schemas into specific types of object structures.

Modules that have some kind of data and need it transformed into some kind of object structure can simply request a `Deserializer` and focus on the task at hand. This makes the module easier to read, by not distracting with data formatting details, and more extensible: they can be provisioned with a new serializer to accept new formats without having to alter the module itself.

Installation
------------

[](#installation)

Install with `composer require stratadox/deserializer-contracts`

Why are there only interfaces in this package
---------------------------------------------

[](#why-are-there-only-interfaces-in-this-package)

This package exists to decouple the concept of a deserializer from its [default implementation](https://github.com/Stratadox/Deserializer).

In this setup, projects that support some kind of deserialization can opt to depend only on a few interfaces, instead of having to always import the default serializer without actually using it.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity49

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

Total

3

Last Release

2002d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5333260?v=4)[Stratadox](/maintainers/Stratadox)[@Stratadox](https://github.com/Stratadox)

---

Top Contributors

[![Stratadox](https://avatars.githubusercontent.com/u/5333260?v=4)](https://github.com/Stratadox "Stratadox (6 commits)")

### Embed Badge

![Health badge](/badges/stratadox-deserializer-contracts/health.svg)

```
[![Health](https://phpackages.com/badges/stratadox-deserializer-contracts/health.svg)](https://phpackages.com/packages/stratadox-deserializer-contracts)
```

###  Alternatives

[phpdocumentor/type-resolver

A PSR-5 based resolver of Class names, Types and Structural Element Names

9.2k719.5M166](/packages/phpdocumentor-type-resolver)[pimple/pimple

Pimple, a simple Dependency Injection Container

2.7k130.5M1.4k](/packages/pimple-pimple)[league/container

A fast and intuitive dependency injection container.

86387.8M342](/packages/league-container)[stella-maris/clock

A pre-release of the proposed PSR-20 Clock-Interface

7947.5M2](/packages/stella-maris-clock)[wptrt/wpthemereview

PHP\_CodeSniffer rules (sniffs) to verify theme compliance with the rules for theme hosting on wordpress.org

217736.5k29](/packages/wptrt-wpthemereview)[inpsyde/modularity

Modular PSR-11 implementation for WordPress plugins, themes or libraries.

54383.3k3](/packages/inpsyde-modularity)

PHPackages © 2026

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