PHPackages                             invis1ble/symfony-serializer-extension - 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. invis1ble/symfony-serializer-extension

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

invis1ble/symfony-serializer-extension
======================================

Additional useful (de)normalizers for symfony/serializer .

v1.1.2(1y ago)1361↓100%MITPHPPHP &gt;=8.1

Since Jun 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Invis1ble/symfony-serializer-extension)[ Packagist](https://packagist.org/packages/invis1ble/symfony-serializer-extension)[ RSS](/packages/invis1ble-symfony-serializer-extension/feed)WikiDiscussions main Synced today

READMEChangelog (9)Dependencies (8)Versions (12)Used By (0)

Symfony Serializer Extension
============================

[](#symfony-serializer-extension)

[![CI Status](https://github.com/Invis1ble/symfony-serializer-extension/actions/workflows/ci.yml/badge.svg?event=push)](https://github.com/Invis1ble/symfony-serializer-extension/actions/workflows/ci.yml/badge.svg?event=push)[![Code Coverage](https://camo.githubusercontent.com/636d9ae343a325e7b9398b0b9465718dd108b8547717efa087f4d0fbf73e9a67/68747470733a2f2f636f6465636f762e696f2f67682f496e76697331626c652f73796d666f6e792d73657269616c697a65722d657874656e73696f6e2f67726170682f62616467652e7376673f746f6b656e3d41515249503431374134)](https://codecov.io/gh/Invis1ble/symfony-serializer-extension)[![Packagist](https://camo.githubusercontent.com/4ef6ce70c952658887433196a9344f582e60fbe15ec961e795786737c65ec327/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f496e76697331626c652f73796d666f6e792d73657269616c697a65722d657874656e73696f6e2e737667)](https://packagist.org/packages/Invis1ble/symfony-serializer-extension)[![MIT licensed](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](./LICENSE)

A useful set of additional (de)normalizers for [symfony/serializer](https://github.com/symfony/serializer):

- `UriNormalizer` for normalizing objects implementing `Psr\Http\Message\UriInterface`

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

[](#installation)

To install this package, you can use Composer:

```
composer require invis1ble/symfony-serializer-extension
```

or just add it as a dependency in your `composer.json` file:

```
{
    "require": {
        "invis1ble/symfony-serializer-extension": "^1.0"
    }
}
```

After adding the above line, run the following command to install the package:

```
composer install
```

Usage
-----

[](#usage)

Currently implemented `UriNormalizer` only.

This normalizer is designed for normalizing `Uri` objects implementing the `Psr\Http\Message\UriInterface`.

Read the official [documentation for the Serializer](https://symfony.com/doc/current/components/serializer.html#usage) component to use normalizers.

```
use Invis1ble\SymfonySerializerExtension\Normalizer\UriNormalizer;
use Symfony\Component\Serializer\Encoder\JsonEncoder;
use Symfony\Component\Serializer\Encoder\XmlEncoder;
use Symfony\Component\Serializer\Serializer;

$encoders = [new XmlEncoder(), new JsonEncoder()];
$normalizers = [new UriNormalizer($uriFactory)];

$serializer = new Serializer($normalizers, $encoders);
```

Development
-----------

[](#development)

### Getting started

[](#getting-started)

1. If not already done, [install Docker Compose](https://docs.docker.com/compose/install/) (v2.10+)
2. Run `docker compose build --no-cache` to build fresh images
3. Run `docker compose up -d --wait` to start the Docker containers
4. Run `docker compose exec php composer install` to install dependencies
5. Run `docker compose down --remove-orphans` to stop the Docker containers.

### Check for Coding Standards violations

[](#check-for-coding-standards-violations)

Run PHP\_CodeSniffer checks:

```
docker compose exec -it php bin/php_codesniffer
```

Run PHP-CS-Fixer checks:

```
docker compose exec -it php bin/php-cs-fixer
```

Run Rector checks:

```
docker compose exec -it php bin/rector
```

Testing
-------

[](#testing)

To run Unit tests during development

```
docker compose exec php vendor/bin/phpunit
```

To run with coverage

```
XDEBUG_MODE=coverage docker compose up -d --wait
docker compose exec php vendor/bin/phpunit --coverage-clover var/log/coverage-clover.xml
```

License
-------

[](#license)

[The MIT License](./LICENSE)

###  Health Score

30

—

LowBetter than 67% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Total

10

Last Release

657d ago

Major Versions

0.1.3 → 1.0.02024-06-03

### Community

Maintainers

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

---

Top Contributors

[![Invis1ble](https://avatars.githubusercontent.com/u/1710944?v=4)](https://github.com/Invis1ble "Invis1ble (44 commits)")

---

Tags

denormalizerdeserializerextensionnormalizerpsrserializersymfonyuriuriinterfacepsrurlurinormalizersymfonyserializerextensiondenormalizerdeserializerUriInterface

###  Code Quality

TestsPHPUnit

Static AnalysisRector

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/invis1ble-symfony-serializer-extension/health.svg)

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

###  Alternatives

[crwlr/url

Swiss Army knife for URLs.

11070.8k3](/packages/crwlr-url)[gamez/ramsey-uuid-normalizer

Symfony Normalizer and Denormalizer for ramsey/uuid

16567.9k2](/packages/gamez-ramsey-uuid-normalizer)[mayflower/mo4-coding-standard

PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.

17501.3k3](/packages/mayflower-mo4-coding-standard)[ekreative/uuid-extra-bundle

Paramconverter, Normalizer and Form Type for Ramsey Uuid

18168.1k](/packages/ekreative-uuid-extra-bundle)

PHPackages © 2026

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