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(2mo ago)07.3k6MITPHPPHP &gt;=8.3

Since May 3Pushed 4mo ago1 watchersCompare

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

READMEChangelogDependencies (13)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

40

—

FairBetter than 86% of packages

Maintenance79

Regular maintenance activity

Popularity21

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

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

Total

2

Last Release

86d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2209895?v=4)[Pieter Jordaan](/maintainers/pjordaan)[@pjordaan](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[sylius/sylius

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

8.5k5.9M736](/packages/sylius-sylius)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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