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

ActiveLibrary

fkulakov/uuid
=============

Generate a UUID according to the RFC 4122 standard. Only support for version 5 UUID are built-in.

08PHP

Since Jun 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/fkulakov/uuid)[ Packagist](https://packagist.org/packages/fkulakov/uuid)[ RSS](/packages/fkulakov-uuid/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Uuid Generator
==============

[](#uuid-generator)

[![Total Downloads](https://camo.githubusercontent.com/a156aebfbf7e0de1b544a2a783af8b8b0b0cdced196e30f2be3c8ac27de41834/68747470733a2f2f706f7365722e707567782e6f72672f666b756c616b6f762f757569642f646f776e6c6f6164732e737667)](https://packagist.org/packages/fkulakov/uuid)[![codecov](https://camo.githubusercontent.com/d48556d0662a5df6ee1a787ec79be993997ae27b74e3d0977ed64f452c1ba565/68747470733a2f2f636f6465636f762e696f2f67682f666b756c616b6f762f757569642f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/fkulakov/uuid)[![Build Status](https://camo.githubusercontent.com/d93c95563939fa61d459873ad10f6033dc3c2d8330d75c380aab70cecfb928a4/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f666b756c616b6f762f757569642e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/fkulakov/uuid)[![Code Quality](https://camo.githubusercontent.com/915c74d172632517e1c6f87f2a132fb37101b0d9697fc4018ec14cbbb2633e04/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f666b756c616b6f762f757569642f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/fkulakov/uuid)

Class to generate a universally unique identifier (UUID) according to the RFC 4122 standard. Only support for version 5 UUIDs are built-in.

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

[](#installation)

```
composer require fkulakov/uuid dev-master
```

Usage
-----

[](#usage)

For a repeatable generate a UUID from some *$source* string use source() method:

```
Uuid::source($source)->generate();
```

For unrepeatable generate a random UUID use random() method:

```
Uuid::random()->generate();
```

For change namespace use setNamespace() method:

```
Uuid::random()->setNamespace($namespace)->generate();
```

```
Uuid::source($source)->setNamespace($namespace)->generate();
```

```
Uuid::random()->setNamespace($namespace)->generate();
```

*NAMESPACE\_DNS* is used by default.

Notes
-----

[](#notes)

The UUID specification: .

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed796e73245db8ffdf465f0f0eefd268dbad6e46859e63743ceb35fea43d5c64?d=identicon)[fkulakov](/maintainers/fkulakov)

---

Top Contributors

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

---

Tags

uuid

### Embed Badge

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

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

PHPackages © 2026

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