UUID
class UUID
Class that generates and validates UUIDs.
Constants
DNS |
DNS namespace. |
URL |
URL namespace. |
OID |
ISO OID namespace. |
X500 |
X.500 DN namespace. |
NIL |
The "nil" UUID. |
Methods
static bool
validate(string $uuid)
Checks if a UUID is valid.
static string
toBinary(string $uuid)
Converts a UUID from its hexadecimal representation to a binary string.
static string
toHexadecimal(string $bytes)
Converts a binary UUID to its hexadecimal representation.
static string
v3(string $namespace, string $name)
Returns a V3 UUID.
static string
v4()
Returns a V4 UUID.
static string
v5(string $namespace, string $name)
Returns a V5 UUID.
static string
sequential()
Returns a sequential (COMB) v4 UUID.
Details
at line 77
static bool
validate(string $uuid)
Checks if a UUID is valid.
at line 90
static string
toBinary(string $uuid)
Converts a UUID from its hexadecimal representation to a binary string.
at line 115
static string
toHexadecimal(string $bytes)
Converts a binary UUID to its hexadecimal representation.
at line 132
static string
v3(string $namespace, string $name)
Returns a V3 UUID.
at line 152
static string
v4()
Returns a V4 UUID.
at line 170
static string
v5(string $namespace, string $name)
Returns a V5 UUID.
at line 190
static string
sequential()
Returns a sequential (COMB) v4 UUID.