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

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

elcodedocle/uuid
================

UUID v3, v4, v5 generator class

2.0.0(1y ago)23302MITPHPPHP &gt;=5.3.0

Since Feb 19Pushed 1y ago1 watchersCompare

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

READMEChangelog (2)DependenciesVersions (3)Used By (2)

UUID class
==========

[](#uuid-class)

##### *Universal Unique Identifier v3, v4 and v5 generator*

[](#universal-unique-identifier-v3-v4-and-v5-generator)

Copyright: The PHP Documentation Group
License: Creative Commons Attribution 3.0 License

### How to use

[](#how-to-use)

```
use info\synapp\tools\uuid\UUID;

require_once 'vendor/elcodedocle/uuid/uuid.php';

//Named-based UUID:
$v3uuid = UUID::v3(UUID::v4(), 'BlahBlahSomeRandomStringBlergBlorg');
$v5uuid = UUID::v5(UUID::v4(), 'BlahBlahSomeRandomStringBlergBlorg');

//Pseudo-random UUID:
$v4uuid = UUID::v4();

echo 'UUIDv3: '.$v3uuid."\n".'UUIDv4: '.$v4uuid."\n".'UUIDv5: '.$v5uuid."\n";
```

### Motivation

[](#motivation)

I needed a UUID generator I could import as a dependency on my projects, so I took the one from the [PHP manual](http://www.php.net/manual/en/function.uniqid.php#94959), added a composer.json and this README.md and uploaded it to this repo.

### Acks

[](#acks)

- The [OSF](http://www.opengroup.org/), for developing the UUID standards
- Andrew Moore, the class author (obviously)
- [The PHP Documentation Group](http://php.net/docs.php)

Enjoy!

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

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

Every ~2399 days

Total

2

Last Release

656d ago

Major Versions

1.0.0 → 2.0.02024-09-14

### Community

Maintainers

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

---

Top Contributors

[![elcodedocle](https://avatars.githubusercontent.com/u/3731026?v=4)](https://github.com/elcodedocle "elcodedocle (7 commits)")

---

Tags

uuidUUIDv3UUIDv4UUIDv5Universal Unique Identifier

### Embed Badge

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

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

###  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)
