PHPackages                             tsantos/fast-object-normalizer - 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. tsantos/fast-object-normalizer

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

tsantos/fast-object-normalizer
==============================

Generate dedicated normalizers for your objects to increase serialization performance

21PHP

Since Sep 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/tsantos84/fast-object-normalizer)[ Packagist](https://packagist.org/packages/tsantos/fast-object-normalizer)[ RSS](/packages/tsantos-fast-object-normalizer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

\[WIP\] Symfony Fast Object Normalizer
======================================

[](#wip-symfony-fast-object-normalizer)

[![Build status](https://github.com/tsantos84/fast-object-normalizer/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/tsantos84/fast-object-normalizer/tree/main) [![Coverage Status](https://camo.githubusercontent.com/e10605162f8b3e2eaf7212fc6bd048e7cb2af7a73296442a8ba7efeadb575083/68747470733a2f2f636f6465636f762e696f2f67682f7473616e746f7338342f666173742d6f626a6563742d6e6f726d616c697a65722f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/tsantos84/fast-object-normalizer/branch/main)

Symfony Object Normalizer that improves the serialization process [up to 5x (e.g. 400%)](https://github.com/tsantos84/fast-object-normalizer/actions/workflows/ci.yml) compared to built-in normalizers. This boost of performance can be accomplished because this normalizer generates dedicated normalizes to your data classes, so you don't need to worry about runtime overhead like reflections or code relying on metadata (e.g. ClassMetadata).

Instalation
-----------

[](#instalation)

```
composer require tsantos/fast-object-normalizer

```

### Symfony Applications

[](#symfony-applications)

This package ships with a Symfony Bundle that autmatically adds the normalizer to the normalizer stack.

#### Applications using Flex

[](#applications-using-flex)

Just install the package and the Symfony Flex automatically register the bundle into your application.

#### Applications not using Flex

[](#applications-not-using-flex)

You need to register the bundle manually:

```
