kodus/uuid-v5

Simple UUID v5 generator

1.1.0 2022-08-24 10:39 UTC

This package is auto-updated.

Last update: 2024-11-24 15:30:28 UTC


README

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.