dev-master
9999999-dev https://github.com/fkulakov/uuidGenerate a UUID according to the RFC 4122 standard. Only support for version 5 UUID are built-in.
MIT
The Requires
- php ^7.2
The Development Requires
uuid rfc4122
Generate a UUID according to the RFC 4122 standard. Only support for version 5 UUID are built-in.
Class to generate a universally unique identifier (UUID) according to the RFC 4122 standard. Only support for version 5 UUIDs are built-in., (*2)
composer require fkulakov/uuid dev-master
For a repeatable generate a UUID from some $source string use source() method:, (*3)
Uuid::source($source)->generate();
For unrepeatable generate a random UUID use random() method:, (*4)
Uuid::random()->generate();
For change namespace use setNamespace() method:, (*5)
Uuid::random()->setNamespace($namespace)->generate();
Uuid::source($source)->setNamespace($namespace)->generate();
Uuid::random()->setNamespace($namespace)->generate();
NAMESPACE_DNS is used by default., (*6)
The UUID specification: http://tools.ietf.org/html/rfc4122., (*7)
Generate a UUID according to the RFC 4122 standard. Only support for version 5 UUID are built-in.
MIT
uuid rfc4122