kodus / uuid-v5
Simple UUID v5 generator
Installs: 28 302
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=8.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-24 15:11:48 UTC
README
Simple static UUID v5 generator/validator.
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.