jkingweb / druuid
DrUUID RFC 9562 library for PHP
Installs: 29 619
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 4
Open Issues: 0
pkg:composer/jkingweb/druuid
Requires
- php: >=7.1.0
Requires (Dev)
This package is auto-updated.
Last update: 2025-12-11 21:27:00 UTC
README
An RFC 9562 (UUID) implementation for PHP.
Usage
DrUUID's API has been designed to be as absolutely simple to use as possible. sGenerating a UUID is as simple as issuing a single method call:
<?php use JKingWeb\DrUUID\UUID; echo UUID::mint(); ?>
Compliance
DrUUID fully complies with RFC 9562, and therefore supports all specified types of UUIDs:
<?php use JKingWeb\DrUUID\UUID; echo UUID::mint(1)."\n"; echo UUID::mint(3, "some identifier", $private_namespace)."\n"; echo UUID::mint(4)."\n"; echo UUID::mint(5, "some identifier", $private_namespace)."\n"; echo UUID::mint(6)."\n"; echo UUID::mint(7)."\n";
More information
DrUUID includes an extensive and exhaustive HTML manual. A complete break-down of features and their use is available therein.