kodus/uuid-v5

1.0.0 2018-09-25 06:29 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.