Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fetus-hina/uuid

A php library to generate UUID v1/3/4/5/6/7/8
https://github.com/fetus-hina/uuid

uuid uuid-generator

Last synced: about 1 month ago
JSON representation

A php library to generate UUID v1/3/4/5/6/7/8

Awesome Lists containing this project

README

        

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

[![Latest Stable Version](https://poser.pugx.org/jp3cki/uuid/v)](//packagist.org/packages/jp3cki/uuid)
[![License](https://poser.pugx.org/jp3cki/uuid/license)](//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
------------

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

Install
-------

```
$ composer.phar require jp3cki/uuid
```

Usage
-----

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

```php