Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 657 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 657 Bytes

kodus/uuid-v5

Simple static UUID v5 generator/validator.

PHP Version Build Status

Usage

Create and validate formatted UUID v5:

use Kodus\Helpers\UUID;

$uuid = UUIDv5::create(UUIDv5::NS_URL, "http://example.com/"); // "0a300ee9-f9e4-5697-a51a-efc7fafaba67"

assert(UUIDv5::isValid($uuid));

Constants are available for the predefined namespaces defined in RFC4122 appendix C.