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

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

fwolf/uuid
==========

Time Based UUID Generator

v1.1(9y ago)172MITPHPPHP &gt;=5.5.0

Since Oct 10Pushed 9y ago1 watchersCompare

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

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

Time Based UUID Generator
=========================

[](#time-based-uuid-generator)

[![Travis](https://camo.githubusercontent.com/2b67367913bac9ad8d6974746571d9dfe3702583282d5ea50a25abf4725a9e81/68747470733a2f2f7472617669732d63692e6f72672f66776f6c662f757569642e7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fwolf/uuid.php)[![Latest Stable Version](https://camo.githubusercontent.com/c078b5621e51482db904305caffa847e63ab3f34f0cd5f4206c167d4ca831f56/68747470733a2f2f706f7365722e707567782e6f72672f66776f6c662f757569642f762f737461626c65)](https://packagist.org/packages/fwolf/uuid)[![License](https://camo.githubusercontent.com/03d73a9c0dc5f1f32438723086044aa386aeb7d7b7ae1a71669a589ce8018f2d/68747470733a2f2f706f7365722e707567782e6f72672f66776f6c662f757569642f6c6963656e7365)](https://packagist.org/packages/fwolf/uuid)[![SensioLabsInsight](https://camo.githubusercontent.com/1d17e828d763dd4a8b54423aed07146a42eddf814eaeb4b520a2219e95a73769/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f30623639613637612d353665652d343132342d613862622d3565636162363130373539642f6d696e692e706e67)](https://insight.sensiolabs.com/projects/0b69a67a-56ee-4124-a8bb-5ecab610759d)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/6b7db92530e0b9a7da3c1f47b1384939cb48388fb90d3d216b3b4b84b860cea7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f66776f6c662f757569642e7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/fwolf/uuid.php/?branch=master)

Generate time based UUID, with custom format and length.

UUIDs follow alphabetical order, more suitable for database primary key.

Short UUID save more space, and little more eye candy.

Check digit can determine if an UUID is valid, maybe useful.

Install
-------

[](#install)

```
composer require fwolf/uuid:~1.1

```

UUID Types
----------

[](#uuid-types)

NameFQNLengthExampleBase16Fwolf\\Util\\Uuid\\Base163657fbbc3d-afca-0001-5962-39f13698e4feBase16WithCheckDigitFwolf\\Util\\Uuid\\Base16WithCheckDigit3657fbbc3d-afd6-0001-5962-66ede233d441Base36Fwolf\\Util\\Uuid\\Base36251bjzaogobg01b0tjd6q2qx6t9Base36ShortFwolf\\Util\\Uuid\\Base36Short161bjzaogok11ggcm5Base62Fwolf\\Util\\Uuid\\Base62241BTD4N3MsO01qbPidY17hfOzBase62ShortFwolf\\Util\\Uuid\\Base62Short1510L1XTQ9s1Ip2OgBy inherit these classes and modify constant value, you can:

- Define length of each part
- Enable check digit
- Change of enable/disable separator between parts

Usage
-----

[](#usage)

```
use Fwolf\Util\Uuid\Base36;

$generator = new Base36();

$uuid = $generator->generate();
echo "Generated UUID: {$uuid}";
// Result: Generated UUID: 1bjzaogobg01b0tjd6q2qx6t9
```

There are some utility scripts in `bin` directory:

- `explain.php` Disassemble UUID to parts and generated time
- `find-offset-base36.php` Find latest offset timestamp for Base36
- `find-offset-base62Short.php` Find latest offset timestamp for Base36Short

License
-------

[](#license)

Distribute under MIT License.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

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

Total

2

Last Release

3549d ago

### Community

Maintainers

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

---

Top Contributors

[![fwolf](https://avatars.githubusercontent.com/u/67877?v=4)](https://github.com/fwolf "fwolf (36 commits)")

---

Tags

uuidtime-based

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/fwolf-uuid/health.svg)](https://phpackages.com/packages/fwolf-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)
