PHPackages                             ekreative/uuid-extra-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. ekreative/uuid-extra-bundle

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

ekreative/uuid-extra-bundle
===========================

Paramconverter, Normalizer and Form Type for Ramsey Uuid

4.2.0(4y ago)18168.6k↓40%12[8 PRs](https://github.com/ekreative/uuid-extra-bundle/pulls)MITPHPPHP ^7.3 || ~8.0.0 || ~8.1.0

Since Apr 30Pushed 2y ago3 watchersCompare

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

READMEChangelog (3)Dependencies (13)Versions (27)Used By (0)

Uuid Extra Bundle
=================

[](#uuid-extra-bundle)

A convenient bundle for using ramsey/uuid in your project

[![Latest Stable Version](https://camo.githubusercontent.com/1240992a55b7b65e58465dfc1979131efc9d279e781a4821928300ad6180c610/68747470733a2f2f706f7365722e707567782e6f72672f656b726561746976652f757569642d65787472612d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/ekreative/uuid-extra-bundle)[![License](https://camo.githubusercontent.com/086dbc48c666c846429ba4dd9f64fd449f273343ce5a45138d8f6eb85c02fb0b/68747470733a2f2f706f7365722e707567782e6f72672f656b726561746976652f757569642d65787472612d62756e646c652f6c6963656e73652e706e67)](https://packagist.org/packages/ekreative/uuid-extra-bundle)[![Build Status](https://camo.githubusercontent.com/6139c12481df0a011be1e578589674c83f22a14fc882e98887737e41a4646069/68747470733a2f2f7472617669732d63692e6f72672f656b726561746976652f757569642d65787472612d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ekreative/uuid-extra-bundle)

Install
-------

[](#install)

### Composer

[](#composer)

```
php composer.phar require ekreative/uuid-extra-bundle
```

### AppKernel

[](#appkernel)

Include the bundle in your AppKernel

```
public function registerBundles()
{
    $bundles = array(
        ...
        new Ekreative\UuidExtraBundle\EkreativeUuidExtraBundle()
```

Config
------

[](#config)

No config needed

Param Converter
---------------

[](#param-converter)

Use just like any other param converter

```
/**
 * @ParamConverter("uuid", class="Ramsey\Uuid\UuidInterface")
 * @Route("/simple/{uuid}")
 */
public function simpleAction(UuidInterface $uuid)
{
    return new Response($uuid->toString());
}
```

Most of the time its going to work automatically, as long as you use type hinting on your action

```
/**
 * @Route("/automatic/{uuid}")
 */
public function simpleAction(UuidInterface $uuid)
{
    return new Response($uuid->toString());
}
```

Also works for optional params

```
/**
 * @Route("/optional/{uuid}")
 */
public function simpleAction(UuidInterface $uuid = null)
{
    return new Response($uuid ? $uuid->toString() : 'no uuid');
}
```

Serializer
----------

[](#serializer)

Also like a normalizer should

```
$this->serializer->serialize($uuid, 'json')
```

Results in `"f13a5b20-9741-4b15-8120-138009d8e0c7"`

And the other way around

```
$this->serializer->denormalize('"f13a5b20-9741-4b15-8120-138009d8e0c7"', UuidInterface::class, 'json')
```

Results in `$uuid`

Works in your Objects etc.

Form Type
---------

[](#form-type)

Does everything you'd expect

```
->add('uuid', UuidType:class)
```

And if your model has

```
/**
 * @Assert\Uuid
 */
private $uuid;
```

It will automatically use the `UuidType`

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~153 days

Total

18

Last Release

1582d ago

Major Versions

1.0.0 → 2.0.02016-11-30

2.3.1 → 3.0.02019-02-05

3.2.1 → 4.0.02020-05-13

PHP version history (4 changes)1.0.0PHP &gt;=5.5.0

2.0.0PHP &gt;=5.5.9

3.0.0PHP &gt;=7.1

4.2.0PHP ^7.3 || ~8.0.0 || ~8.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7039999f29a83140d61116032ec1684c752412e458ad1999e15eea2f8808498c?d=identicon)[mcfedr](/maintainers/mcfedr)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (100 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (99 commits)")[![mcfedr](https://avatars.githubusercontent.com/u/704356?v=4)](https://github.com/mcfedr "mcfedr (52 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (19 commits)")[![nicholasruunu](https://avatars.githubusercontent.com/u/483658?v=4)](https://github.com/nicholasruunu "nicholasruunu (2 commits)")[![Toilal](https://avatars.githubusercontent.com/u/1165758?v=4)](https://github.com/Toilal "Toilal (2 commits)")[![smagolexandr](https://avatars.githubusercontent.com/u/17381289?v=4)](https://github.com/smagolexandr "smagolexandr (1 commits)")

---

Tags

symfony-bundlenormalizersymfonybundleconverteruuididentifierguidformparamconverterparamdenormalizerramsey

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ekreative-uuid-extra-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/ekreative-uuid-extra-bundle/health.svg)](https://phpackages.com/packages/ekreative-uuid-extra-bundle)
```

###  Alternatives

[pascaldevink/shortuuid

PHP 7.4+ library that generates concise, unambiguous, URL-safe UUIDs

5951.8M15](/packages/pascaldevink-shortuuid)[winzou/state-machine-bundle

Bundle for the very lightweight yet powerful PHP state machine

34010.4M15](/packages/winzou-state-machine-bundle)[gamez/ramsey-uuid-normalizer

Symfony Normalizer and Denormalizer for ramsey/uuid

16619.1k3](/packages/gamez-ramsey-uuid-normalizer)[norberttech/aceeditor-bundle

Bundle that integrate excellent JavaScript ace editor into Symfony Form.

28310.8k](/packages/norberttech-aceeditor-bundle)[pyyoshi/shortuuid-php

2226.1k](/packages/pyyoshi-shortuuid-php)[ramsey/identifier

A PHP library for generating and working with identifiers, including UUIDs, ULIDs, and Snowflakes

603.0k1](/packages/ramsey-identifier)

PHPackages © 2026

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