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

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gamez/ramsey-uuid-normalizer
============================

Symfony Normalizer and Denormalizer for ramsey/uuid

3.3.0(3mo ago)16619.1k—2.8%62MITPHPPHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since Aug 31Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/jeromegamez/ramsey-uuid-normalizer)[ Packagist](https://packagist.org/packages/gamez/ramsey-uuid-normalizer)[ Docs](https://github.com/jeromegamez/ramsey-uuid-normalizer)[ GitHub Sponsors](https://github.com/sponsors/jeromegamez)[ RSS](/packages/gamez-ramsey-uuid-normalizer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (7)Versions (11)Used By (2)

Symfony Normalizer and Denormalizer for [ramsey/uuid](https://github.com/ramsey/uuid)
=====================================================================================

[](#symfony-normalizer-and-denormalizer-for-ramseyuuid)

[![Current version](https://camo.githubusercontent.com/1a73b625b8b790cd94a6ce14a5f58ecf27311f0db1f561ecc443f71a1ff6c6a6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67616d657a2f72616d7365792d757569642d6e6f726d616c697a65722e7376673f6c6f676f3d636f6d706f736572)](https://packagist.org/packages/gamez/ramsey-uuid-normalizer)[![Monthly Downloads](https://camo.githubusercontent.com/f65d6d374b732174b97f209ab12fe528d0c1776efb36fba91781cefbe449ea4a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f67616d657a2f72616d7365792d757569642d6e6f726d616c697a65722e737667)](https://packagist.org/packages/gamez/ramsey-uuid-normalizer/stats)[![Total Downloads](https://camo.githubusercontent.com/62cd605ddff252fd887619184b5e53e0ed6e6e96355bbc69e32e61719df1afec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67616d657a2f72616d7365792d757569642d6e6f726d616c697a65722e737667)](https://packagist.org/packages/gamez/ramsey-uuid-normalizer/stats)[![Tests](https://github.com/jeromegamez/ramsey-uuid-normalizer/workflows/Tests/badge.svg)](https://github.com/jeromegamez/ramsey-uuid-normalizer/actions)[![Sponsor](https://camo.githubusercontent.com/1004a94551d1edaf2a6da4d45ba217b79a46eb18dd7dd2d7825add0a2a8ddc4f/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6f676f3d476974487562266c6162656c3d53706f6e736f72266d6573736167653d25453225394425413426636f6c6f723d666636396234)](https://github.com/sponsors/jeromegamez)

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

[](#installation)

The utility can be installed with [Composer](https://getcomposer.org):

```
$ composer require gamez/ramsey-uuid-normalizer
```

Usage
-----

[](#usage)

### Symfony Serializer Component

[](#symfony-serializer-component)

The usage example requires the [PropertyAccess Component](https://github.com/symfony/property-access) component, which can also be installed with [Composer](https://getcomposer.org):

```
$ composer require symfony/property-access
```

```
use Gamez\Symfony\Component\Serializer\Normalizer\UuidNormalizer;
use Ramsey\Uuid\Uuid;
use Symfony\Component\Serializer\Encoder\JsonEncoder;
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
use Symfony\Component\Serializer\Serializer;

class Person
{
    public $id;
    public $name;
}

$person = new Person();
$person->id = Uuid::uuid4();
$person->name = 'Jérôme Gamez';

$encoders = [new JsonEncoder()];
$normalizers = [new UuidNormalizer(), new ObjectNormalizer()];
$serializer = new Serializer($normalizers, $encoders);

$json = $serializer->serialize($person, 'json');
echo $json.PHP_EOL;
// {"id":"3d79048c-29e7-482f-979a-5b9a708b2ede","name":"J\u00e9r\u00f4me Gamez"}

$person = $serializer->deserialize($json, Person::class, 'json');
var_dump($person);
/*
class Person#27 (2) {
  public $id =>
  string(36) "3d79048c-29e7-482f-979a-5b9a708b2ede"
  public $name =>
  string(14) "Jérôme Gamez"
}
*/
```

For further information on how to use the Symfony Serializer Component, please see [The Serializer Component](https://symfony.com/doc/current/components/serializer.html) in the official documentation.

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance82

Actively maintained with recent releases

Popularity48

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity87

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 90.9% 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 ~386 days

Recently: every ~535 days

Total

9

Last Release

93d ago

Major Versions

1.2 → 2.02019-12-31

2.1.0 → 3.0.02022-04-04

PHP version history (4 changes)3.0.0PHP ^8.0

3.1.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0

3.2.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

3.3.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8685cf532053a084f1eade7b7da00a512c02676e65f1f1bdec73d4978030a47d?d=identicon)[jeromegamez](/maintainers/jeromegamez)

---

Top Contributors

[![jeromegamez](https://avatars.githubusercontent.com/u/67554?v=4)](https://github.com/jeromegamez "jeromegamez (40 commits)")[![snapshotpl](https://avatars.githubusercontent.com/u/312655?v=4)](https://github.com/snapshotpl "snapshotpl (2 commits)")[![andrey-tech](https://avatars.githubusercontent.com/u/51994444?v=4)](https://github.com/andrey-tech "andrey-tech (1 commits)")[![s0lus](https://avatars.githubusercontent.com/u/4124371?v=4)](https://github.com/s0lus "s0lus (1 commits)")

---

Tags

normalizerphpramseyramsey-uuidserializersymfonynormalizersymfonyserializeruuidramsey

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[webpatser/laravel-uuid

Laravel integration for webpatser/uuid - High-performance drop-in UUID replacements (15% faster than Ramsey). Provides Str macros, HasUuids trait, facades, and casts. RFC 4122/9562 compliant.

1.8k17.3M129](/packages/webpatser-laravel-uuid)[ekreative/uuid-extra-bundle

Paramconverter, Normalizer and Form Type for Ramsey Uuid

18168.6k](/packages/ekreative-uuid-extra-bundle)[mhujer/jms-serializer-uuid

Uuid serializer and deserializer for JMS Serializer library

291.2M4](/packages/mhujer-jms-serializer-uuid)[chrisguitarguy/request-id-bundle

Add request IDs to to your Symfony requests.

451.4M5](/packages/chrisguitarguy-request-id-bundle)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)[elfsundae/laravel-hashid-uuid

Shorten UUID encoding for Laravel Hashid.

132.5k](/packages/elfsundae-laravel-hashid-uuid)

PHPackages © 2026

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