PHPackages                             gbprod/uuid-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. gbprod/uuid-normalizer

ActiveLibrary

gbprod/uuid-normalizer
======================

Normalizer to serialize Ramsey Uuid with Symfony Serializer

v8.0.0(2mo ago)32628.1k—4.3%92WTFPLPHPPHP ^8.2CI passing

Since Mar 19Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/gbprod/uuid-normalizer)[ Packagist](https://packagist.org/packages/gbprod/uuid-normalizer)[ RSS](/packages/gbprod-uuid-normalizer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (13)Versions (16)Used By (2)

Uuid normalizer
===============

[](#uuid-normalizer)

[![Tests](https://github.com/gbprod/uuid-normalizer/actions/workflows/ci.yaml/badge.svg)](https://github.com/gbprod/uuid-normalizer/actions/workflows/ci.yaml)[![Latest Stable Version](https://camo.githubusercontent.com/c1788ecbdb7b1492202ac5adf5c0348faf50a9be2565cb557d9d6073e4f58904/68747470733a2f2f706f7365722e707567782e6f72672f676270726f642f757569642d6e6f726d616c697a65722f762f737461626c65)](https://packagist.org/packages/gbprod/uuid-normalizer)[![Total Downloads](https://camo.githubusercontent.com/31e0f1d9d4741eb97907eec3c3ff0333d004e6c421d92e91dcd3a9ebde489dfa/68747470733a2f2f706f7365722e707567782e6f72672f676270726f642f757569642d6e6f726d616c697a65722f646f776e6c6f616473)](https://packagist.org/packages/gbprod/uuid-normalizer)[![Latest Unstable Version](https://camo.githubusercontent.com/acd713b3f43373ccdf86de6f48ea8dc0ac552785a57e9b4f8feb37e49d2ff42f/68747470733a2f2f706f7365722e707567782e6f72672f676270726f642f757569642d6e6f726d616c697a65722f762f756e737461626c65)](https://packagist.org/packages/gbprod/uuid-normalizer)

Normalizer to serialize [Ramsey Uuid](https://github.com/ramsey/uuid) using [Symfony Serializer](https://github.com/symfony/serializer).

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

[](#installation)

```
composer require gbprod/uuid-normalizer
```

Why
---

[](#why)

By default, [Symfony Serializer](https://github.com/symfony/serializer) can't handle serialization and deserialization of [Ramsey Uuid](https://github.com/ramsey/uuid). You will have that kind of errors:

```
Not a time-based UUID
500 Internal Server Error - UnsupportedOperationException

```

### Setup

[](#setup)

In your `app/config/service.yml` file:

```
services:
  uuid_normalizer:
    class: GBProd\UuidNormalizer\UuidNormalizer
    tags:
      - { name: serializer.normalizer }

  uuid_denormalizer:
    class: GBProd\UuidNormalizer\UuidDenormalizer
    tags:
      - { name: serializer.normalizer }
```

Or using `xml`:

```

```

Or `php`:

```
use Symfony\Component\DependencyInjection\Definition;

$definition = new Definition('GBProd\UuidNormalizer\UuidNormalizer');
$definition->addTag('serializer.normalizer');
$container->setDefinition('uuid_normalizer', $definition);

$definition = new Definition('GBProd\UuidNormalizer\UuidDenormalizer');
$definition->addTag('serializer.normalizer');
$container->setDefinition('uuid_denormalizer', $definition);
```

Or building your own serializer:

```
use GBProd\UuidNormalizer\UuidDenormalizer;
use GBProd\UuidNormalizer\UuidNormalizer;

$serializer = new Serializer([
    new UuidNormalizer(),
    new UuidDenormalizer(),
    // Other normalizers...
]);
```

Requirements
------------

[](#requirements)

- PHP 7.4+

Contributing
------------

[](#contributing)

Feel free to contribute, see [CONTRIBUTING.md](CONTRIBUTING.md) file for more informations.

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance85

Actively maintained with recent releases

Popularity49

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 80.8% 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

Recently: every ~313 days

Total

12

Last Release

77d ago

Major Versions

v1.3.0 → v7.0.02024-01-16

v7.0.2 → v8.0.02026-03-02

PHP version history (7 changes)v1.0.0PHP &gt;=5.5.9

v1.1.0PHP ^5.6|^7.0

v1.2.0PHP ^5.6|^7.0|^8.0

v1.2.2PHP ^7.2|^8.0

v1.3.0PHP ^7.4|^8.0|^8.1

v7.0.0PHP ^7.4|^8.0

v8.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/841b899d90de45fe2d70ae8efa1c505f53f276bdb3c5968194f1ab87b4c854c5?d=identicon)[gbprod](/maintainers/gbprod)

---

Top Contributors

[![gbprod](https://avatars.githubusercontent.com/u/3751019?v=4)](https://github.com/gbprod "gbprod (21 commits)")[![jyggen](https://avatars.githubusercontent.com/u/264300?v=4)](https://github.com/jyggen "jyggen (1 commits)")[![kalifg](https://avatars.githubusercontent.com/u/487194?v=4)](https://github.com/kalifg "kalifg (1 commits)")[![Nek-](https://avatars.githubusercontent.com/u/972456?v=4)](https://github.com/Nek- "Nek- (1 commits)")[![notdefine](https://avatars.githubusercontent.com/u/12696553?v=4)](https://github.com/notdefine "notdefine (1 commits)")[![ramchale](https://avatars.githubusercontent.com/u/5716929?v=4)](https://github.com/ramchale "ramchale (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/gbprod-uuid-normalizer/health.svg)

```
[![Health](https://phpackages.com/badges/gbprod-uuid-normalizer/health.svg)](https://phpackages.com/packages/gbprod-uuid-normalizer)
```

###  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)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[api-platform/state

API Platform state interfaces

223.4M57](/packages/api-platform-state)[api-platform/serializer

API Platform core Serializer

223.4M31](/packages/api-platform-serializer)[sulu/content-bundle

Experimental content implementation for sulu.

17112.3k1](/packages/sulu-content-bundle)

PHPackages © 2026

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