PHPackages                             mbbender/doctrine-ordered-uuid-generator - 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. [Database &amp; ORM](/categories/database)
4. /
5. mbbender/doctrine-ordered-uuid-generator

ActiveLibrary[Database &amp; ORM](/categories/database)

mbbender/doctrine-ordered-uuid-generator
========================================

Adds an Ordered UUID type for MySQL which replaces the CHAR(36) with a re-arranged UUID() string as a BINARY 16 which significantly increases performance.

v0.1.0(11y ago)102201[1 issues](https://github.com/mbbender/doctrine-ordered-uuid-generator/issues)MITPHP

Since May 7Pushed 10y ago2 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

This library is under development and has not been tested with anything other than the most basic creating of an entity. Relationships have not been tested. Hydration has not been tested. Performance has not been tested.

The purpose of this Doctrine2 Id generator is to increase performance when using a UUID for entities. It creates an ordered UUID based on the methods described in Karthik Appigatla's article ().

\#Installation and Usage

Add to composer require

```
"mbbender/doctrine-ordered-uuid-generator":"dev-master"
```

\##Register Type with Entity Manager

```
Doctrine\DBAL\Types\Type::addType('ordered_guid','Mbbender\Doctrine\DBAL\Types\OrderedGuidType');
```

\###In Laravel Install

In config/doctrine.php add

```
'custom_type' => [
  `'ordered_guid' => 'Mbbender\Doctrine\DBAL\Types\OrderedGuidType'`
]

```

\##Implement In Entity

```
 /**
 * @ORM\Id
 * @ORM\GeneratedValue(strategy="CUSTOM")
 * @ORM\Column(type="ordered_guid")
 * @ORM\CustomIdGenerator(class="Mbbender\Doctrine\ORM\Id\OrderedGuidGenerator")
 */
private $id;
```

\#Notes Basic testing done with MySQL and Sqlite.

\#Contributions If you'd like to add a database system you just have to add a strategy for generating the UUID in the form stated in the linked article above for your database system in the OrderedGuidTYpe file.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

4029d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ee113a000475dd01c4fd9859ba6acfc803ee1a3dff62cb45de778cdba8a26d9f?d=identicon)[michael-bender](/maintainers/michael-bender)

---

Top Contributors

[![mbbender](https://avatars.githubusercontent.com/u/1754012?v=4)](https://github.com/mbbender "mbbender (18 commits)")

---

Tags

mysqldoctrine2

### Embed Badge

![Health badge](/badges/mbbender-doctrine-ordered-uuid-generator/health.svg)

```
[![Health](https://phpackages.com/badges/mbbender-doctrine-ordered-uuid-generator/health.svg)](https://phpackages.com/packages/mbbender-doctrine-ordered-uuid-generator)
```

###  Alternatives

[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58723.9M36](/packages/scienta-doctrine-json-functions)[dunglas/doctrine-json-odm

An object document mapper for Doctrine ORM using JSON types of modern RDBMS.

6285.0M10](/packages/dunglas-doctrine-json-odm)[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4636.8M12](/packages/fresh-doctrine-enum-bundle)[oro/doctrine-extensions

Doctrine Extensions for MySQL and PostgreSQL.

34411.8M19](/packages/oro-doctrine-extensions)[creof/doctrine2-spatial

Doctrine2 multi-platform support for spatial types and functions

2763.3M11](/packages/creof-doctrine2-spatial)[ocramius/doctrine-batch-utils

A set of utilities to operate with Doctrine ORM's batch processing functionality

3331.6M6](/packages/ocramius-doctrine-batch-utils)

PHPackages © 2026

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