PHPackages                             mdeweerd/class.uuid.php - 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. mdeweerd/class.uuid.php

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

mdeweerd/class.uuid.php
=======================

UUID generator based on implementation by Fredrik Lindberg

v1.2(4y ago)06BSD-2-ClausePHPPHP &gt;=5.3.1

Since Sep 17Pushed 4y agoCompare

[ Source](https://github.com/mdeweerd/class.uuid.php)[ Packagist](https://packagist.org/packages/mdeweerd/class.uuid.php)[ Docs](https://github.com/mdeweerd/class.uuid.php)[ RSS](/packages/mdeweerd-classuuidphp/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

Pure PHP UUID generator

Dual-licensed under BSDL (2-clause) or Apache 2.0 license

Important Note (Mario DE WEERD):
================================

[](#important-note-mario-de-weerd)

The original library incorrectly generates random UUIDs. The [RFC4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.4) requires that the two most significant bits of `clock_seq_hi...` are as in `0b10xx_xxxx`, but the original code generated a random number for that byte in the range 0..177.

As a result half of the generated random UUIDs (Version 4) were not compliant. This is fixed in this version.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

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

2

Last Release

1749d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/68030366?v=4)[ynamics](/maintainers/ynamics)[@ynamics](https://github.com/ynamics)

---

Top Contributors

[![fredriklindberg](https://avatars.githubusercontent.com/u/875029?v=4)](https://github.com/fredriklindberg "fredriklindberg (2 commits)")[![mdeweerd](https://avatars.githubusercontent.com/u/1504752?v=4)](https://github.com/mdeweerd "mdeweerd (1 commits)")

---

Tags

uuid

### Embed Badge

![Health badge](/badges/mdeweerd-classuuidphp/health.svg)

```
[![Health](https://phpackages.com/badges/mdeweerd-classuuidphp/health.svg)](https://phpackages.com/packages/mdeweerd-classuuidphp)
```

###  Alternatives

[ramsey/uuid

A PHP library for generating and working with universally unique identifiers (UUIDs).

12.6k745.0M4.0k](/packages/ramsey-uuid)[symfony/polyfill-uuid

Symfony polyfill for uuid functions

688372.1M92](/packages/symfony-polyfill-uuid)[symfony/uid

Provides an object-oriented API to generate and represent UIDs

610316.3M1.3k](/packages/symfony-uid)[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.9M141](/packages/webpatser-laravel-uuid)[pascaldevink/shortuuid

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

5941.9M16](/packages/pascaldevink-shortuuid)[emadadly/laravel-uuid

laravel uuid a simple, automatic UUID generator for any model based on Laravel.

120420.3k3](/packages/emadadly-laravel-uuid)

PHPackages © 2026

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