PHPackages                             apie/serializer - 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. apie/serializer

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

apie/serializer
===============

Composer package of the apie library: serializer

1.0.0.x-dev(1mo ago)07.2k6MITPHPPHP &gt;=8.3

Since May 3Pushed 2mo ago1 watchersCompare

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

READMEChangelogDependencies (12)Versions (3)Used By (6)

[![](https://raw.githubusercontent.com/apie-lib/apie-lib-monorepo/main/docs/apie-logo.svg)](https://raw.githubusercontent.com/apie-lib/apie-lib-monorepo/main/docs/apie-logo.svg)

serializer
==========

[](#serializer)

[![Latest Stable Version](https://camo.githubusercontent.com/f060adfa6726862e26421cf77700b02a469dcbe44544a755fbb527b7b0912890/68747470733a2f2f706f7365722e707567782e6f72672f617069652f73657269616c697a65722f76)](https://packagist.org/packages/apie/serializer) [![Total Downloads](https://camo.githubusercontent.com/993a99ba96aacb35793a855ecd8199bf828169dfcbc8e53a06016e1f8c51ae45/68747470733a2f2f706f7365722e707567782e6f72672f617069652f73657269616c697a65722f646f776e6c6f616473)](https://packagist.org/packages/apie/serializer) [![Latest Unstable Version](https://camo.githubusercontent.com/929350c6be37894f2c15eb37af15dc96bf1321e533f761bd1e9a8dbac464ad36/68747470733a2f2f706f7365722e707567782e6f72672f617069652f73657269616c697a65722f762f756e737461626c65)](https://packagist.org/packages/apie/serializer) [![License](https://camo.githubusercontent.com/270c0d1b2f5da7be2441296bc946834a208d5ed9685b80d8138bae0ff9f07ad8/68747470733a2f2f706f7365722e707567782e6f72672f617069652f73657269616c697a65722f6c6963656e7365)](https://packagist.org/packages/apie/serializer) [![PHP Composer](https://camo.githubusercontent.com/1b3218a6e54dbca592e21f34ebb53809f3a1ec8484fdb3441f11e6f2422b3693/68747470733a2f2f617069652d6c69622e6769746875622e696f2f70726f6a656374436f7665726167652f636f7665726167652d73657269616c697a65722e737667)](https://apie-lib.github.io/projectCoverage/serializer/index.html)

[![PHP Composer](https://github.com/apie-lib/serializer/actions/workflows/php.yml/badge.svg?event=push)](https://github.com/apie-lib/serializer/actions/workflows/php.yml)

This package is part of the [Apie](https://github.com/apie-lib) library. The code is maintained in a monorepo, so PR's need to be sent to the [monorepo](https://github.com/apie-lib/apie-lib-monorepo/pulls)

Documentation
-------------

[](#documentation)

The Apie serializer serializes stored data to the customers or backwards. It is very similar to the Symfony serializer, except the context array in Symfony serializer is replaced with a ApieSerializerContext which also contains method for recursive calls. It still has the same logic related to decoding/encoding/normalizing and denormalizing.

### Normalization and denormalization Usage

[](#normalization-and-denormalization-usage)

The simples use is just calling the static method create or customize it with the constructor method:

```
use Apie\Core\Context\ApieContext;
use Apie\Serializer\Serializer;

$serializer = Serializer::create();
// returns new SerializedHashmap(['id' => 'example@example.com', 'password' => 'p@ssW0rd'])
$serializer->normalize(new User('example@example.com', 'p@ssW0rd'), new ApieContext());
// returns new User('example.com', 'p@ssW0rd')
$serializer->denormalizeNewObject(
    ['id' => 'example@example.com', 'password' => 'p@ssW0rd'],
    User::class,
    new ApieContext()
);
```

### Customization

[](#customization)

To add your own normalization logic, you need to add a class implementing Apie\\Serializer\\Interfaces\\NormalizerInterface. To add your own denormalization logic, you need to add a class implementing Apie\\Serializer\\Interfaces\\DenormalizerInterface.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance86

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 53.1% 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 ~330 days

Total

2

Last Release

50d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/afaff46a911649ad95e1f4909bb19a54731c209c4bcd4e5c1c7604e05bde2089?d=identicon)[pjordaan](/maintainers/pjordaan)

---

Top Contributors

[![pjordaan](https://avatars.githubusercontent.com/u/2209895?v=4)](https://github.com/pjordaan "pjordaan (95 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (84 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/apie-serializer/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[daux/daux.io

Documentation generator that uses a simple folder structure and Markdown files to create custom documentation on the fly

825191.0k1](/packages/daux-dauxio)[pcrov/jsonreader

JSON Pull Parser

1451.2M5](/packages/pcrov-jsonreader)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[eprofos/user-agent-analyzer

A powerful Symfony bundle for user-agent analysis. It provides accurate detection of operating systems (Windows, MacOS, Linux, iOS, Android...), browsers (Chrome, Firefox, Safari...), and device types (Desktop, Mobile, Tablet, TV...). Supports specific version detection and includes advanced handling of special cases like WebViews and compatibility modes. Features comprehensive logging and detailed analysis results.

182.3k](/packages/eprofos-user-agent-analyzer)

PHPackages © 2026

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