PHPackages                             richcongress/normalizer-extension-bundle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. richcongress/normalizer-extension-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

richcongress/normalizer-extension-bundle
========================================

This bundle adds another process after normalization to inject or edit some data.

v4.0.1(10mo ago)053.1k↓46.9%MITPHPPHP ^8.1

Since Mar 18Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/rich-id/normalizer-extension-bundle)[ Packagist](https://packagist.org/packages/richcongress/normalizer-extension-bundle)[ RSS](/packages/richcongress-normalizer-extension-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (12)Versions (11)Used By (0)

Getting Started With RichCongressNormalizerExtensionBundle
==========================================================

[](#getting-started-with-richcongressnormalizerextensionbundle)

This version of the bundle requires Symfony 6.0+ and PHP 8.1+.

[![Package version](https://camo.githubusercontent.com/ed0190a04b8d4e58bba42e08ec942f2666127b22dba7bb54e9dd587aec853aa0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72696368636f6e67726573732f6e6f726d616c697a65722d657874656e73696f6e2d62756e646c65)](https://packagist.org/packages/richcongress/normalizer-extension-bundle)[![Build Status](https://camo.githubusercontent.com/cddbaee19f85cac0c9e93326ccde11c11ebf53d583b438c2e3aa8bc993310fa8/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f72696368636f6e67726573732f6e6f726d616c697a65722d657874656e73696f6e2d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/richcongress/normalizer-extension-bundle?branch=master)[![Coverage Status](https://camo.githubusercontent.com/60b7400c220ff5c6278592e319cf15aaeb3045ed4c51c18814d262f05dfd5f9f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f72696368636f6e67726573732f6e6f726d616c697a65722d657874656e73696f6e2d62756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/richcongress/normalizer-extension-bundle?branch=master)[![contributions welcome](https://camo.githubusercontent.com/9e93e892d0685e1bf7a1d0bd7c8410d6ecf2086a0a7b48dd58a6b96fa556ea2a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e747269627574696f6e732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/richcongress/normalizer-extension-bundle/issues)[![License](https://camo.githubusercontent.com/4141875b9db06b6e19ee4c8c4f14f34b47dabb4fcdad7816e338a79666b0aacb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d7265642e737667)](LICENSE.md)

The normalizer-extension-bundle provides extended functionalities for the Symfony Serializer.

Quick start
===========

[](#quick-start)

The normalizer-extension-bundle is ready out of the box. You can now create your own object normalizer extension:

```
use RichCongress\NormalizerExtensionBundle\Serializer\Normalizer\Extension\AbstractObjectNormalizerExtension;

class DummyEntityNormalizerExtension extends AbstractObjectNormalizerExtension
{
    /**
     * @var string
     */
    public static $objectClass = DummyEntity::class;

    /**
     * Prefix to add before every context
     */
    public static $contextPrefix = 'dummy_entity_';

    /**
     * ['serialization_group' => 'propertyName']
     *
     * @return array
     */
    public static function getSupportedGroups(): array
    {
        return [
            'is_beautiful_enough' => 'isBeautifulEnough',
            'name'                => 'wonderfulName',
        ];
    }

    public function isBeautifulEnought(): bool
    {
        return true;
    }

    public function getWonderfulName(): string
    {
        return 'DummyEntity is its name';
    }
}
```

Table of content
================

[](#table-of-content)

1. [Installation](#1-installation)
2. [Getting started](#2-getting-started)- [AbstractObjectNormalizerExtension](docs/NormalizerExtension.md#abstractobjectnormalizerextension)- [Write your own Normalizer Extension](docs/NormalizerExtension.md#write-your-own-normalizer-extension)
3. [Versioning](#3-versioning)
4. [Contributing](#4-contributing)
5. [Hacking](#5-hacking)
6. [License](#6-license)

1. Installation
===============

[](#1-installation)

This version of the bundle requires Symfony 6.0+ and PHP 8.1+.

### 1.1 Composer

[](#11-composer)

```
composer require richcongress/normalizer-extension-bundle
```

### 1.2 Bundles declaration

[](#12-bundles-declaration)

After the installation, make sure that the bundle is declared correctly within the Kernel's bundles list.

```
new RichCongress\NormalizerExtensionBundle\RichCongressNormalizerExtensionBundle::class => ['all' => true],
```

2. Getting started
==================

[](#2-getting-started)

- [Normalizer Extension](docs/NormalizerExtension.md)
    - [AbstractObjectNormalizerExtension](docs/NormalizerExtension.md#abstractobjectnormalizerextension)
    - [Write your own Normalizer Extension](docs/NormalizerExtension.md#write-your-own-normalizer-extension)

3. Versioning
=============

[](#3-versioning)

normalizer-extension-bundle follows [semantic versioning](https://semver.org/). In short the scheme is MAJOR.MINOR.PATCH where

1. MAJOR is bumped when there is a breaking change,
2. MINOR is bumped when a new feature is added in a backward-compatible way,
3. PATCH is bumped when a bug is fixed in a backward-compatible way.

Versions bellow 1.0.0 are considered experimental and breaking changes may occur at any time.

4. Contributing
===============

[](#4-contributing)

Contributions are welcomed! There are many ways to contribute, and we appreciate all of them. Here are some of the major ones:

- [Bug Reports](https://github.com/richcongress/normalizer-extension-bundle/issues): While we strive for quality software, bugs can happen and we can't fix issues we're not aware of. So please report even if you're not sure about it or just want to ask a question. If anything the issue might indicate that the documentation can still be improved!
- [Feature Request](https://github.com/richcongress/normalizer-extension-bundle/issues): You have a use case not covered by the current api? Want to suggest a change or add something? We'd be glad to read about it and start a discussion to try to find the best possible solution.
- [Pull Request](https://github.com/richcongress/normalizer-extension-bundle/pulls): Want to contribute code or documentation? We'd love that! If you need help to get started, GitHub as [documentation](https://help.github.com/articles/about-pull-requests/) on pull requests. We use the ["fork and pull model"](https://help.github.com/articles/about-collaborative-development-models/) were contributors push changes to their personnal fork and then create pull requests to the main repository. Please make your pull requests against the `master` branch.

As a reminder, all contributors are expected to follow our [Code of Conduct](CODE_OF_CONDUCT.md).

5. Hacking
==========

[](#5-hacking)

You might use Docker and `docker-compose` to hack the project. Check out the following commands.

```
# Start the project
docker-compose up -d

# Install dependencies
docker-compose exec application composer install

# Run tests
docker-compose exec application vendor/phpunit/phpunit/phpunit

# Run a bash within the container
docker-compose exec application bash
```

6. License
==========

[](#6-license)

normalizer-extension-bundle is distributed under the terms of the MIT license.

See [LICENSE](LICENSE.md) for details.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance53

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~275 days

Recently: every ~291 days

Total

8

Last Release

327d ago

Major Versions

v1.1.0 → v2.0.02021-08-10

v2.1.0 → v3.0.02024-06-03

v3.x-dev → v4.0.02024-09-24

PHP version history (2 changes)v1.0.0PHP &gt;=7.1

v3.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/6bfb5e4a3dde826e4cd3f92d24fdfbdce1415c77f3edd38fc3420b4988977e13?d=identicon)[HugoDumazeau](/maintainers/HugoDumazeau)

![](https://www.gravatar.com/avatar/8084ee0162a85df3b3f49230b8c0dde81108195caa541bb00642cbd050e88b25?d=identicon)[hudumazeau](/maintainers/hudumazeau)

---

Top Contributors

[![NicolasGuilloux](https://avatars.githubusercontent.com/u/4090627?v=4)](https://github.com/NicolasGuilloux "NicolasGuilloux (18 commits)")[![mdevlamynck](https://avatars.githubusercontent.com/u/4378377?v=4)](https://github.com/mdevlamynck "mdevlamynck (3 commits)")

### Embed Badge

![Health badge](/badges/richcongress-normalizer-extension-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/richcongress-normalizer-extension-bundle/health.svg)](https://phpackages.com/packages/richcongress-normalizer-extension-bundle)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

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

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)

PHPackages © 2026

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