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

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

jp3cki/uuid
===========

v5.0.0(5mo ago)219.2k↓31.3%MITPHPPHP &gt;= 8.2CI passing

Since Mar 27Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/fetus-hina/uuid)[ Packagist](https://packagist.org/packages/jp3cki/uuid)[ RSS](/packages/jp3cki-uuid/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (13)Used By (0)

jp3cki/uuid
===========

[](#jp3ckiuuid)

[![Latest Stable Version](https://camo.githubusercontent.com/70e450e7acb77b6a0fb7887002f73ac312568cb48c197188c1fb50e36a4da416/68747470733a2f2f706f7365722e707567782e6f72672f6a7033636b692f757569642f76)](//packagist.org/packages/jp3cki/uuid)[![License](https://camo.githubusercontent.com/9d017029e20863fdc5a2ee10ade69dc22f635e28301f0d3c8de6ca8a43b79a06/68747470733a2f2f706f7365722e707567782e6f72672f6a7033636b692f757569642f6c6963656e7365)](//packagist.org/packages/jp3cki/uuid)

A simple UUID and ULID implementation.
UUIDv6, v7 and v8 are implemented based on the [draft](https://www.ietf.org/archive/id/draft-ietf-uuidrev-rfc4122bis-03.txt).

Requirements
------------

[](#requirements)

- PHP ≥ 8.2 (64 bit)
- Basic extensions
    - PCRE (preg)
    - Hash

Install
-------

[](#install)

```
$ composer.phar require jp3cki/uuid

```

Usage
-----

[](#usage)

### Timestamp-based UUID (version 1, 6, 7)

[](#timestamp-based-uuid-version-1-6-7)

```
