Version 3 UUIDs are named based. They require a namespace (another
valid UUID) and a value (the name). Given the same namespace and
name, the output is always the same.
Parameters
Name
Type
Description
$namespace
\uuid
$name
string
v4() : void
static
Generate v4 UUID
Version 4 UUIDs are pseudo-random.
v5(\uuid $namespace, string $name) : void
static
Generate v5 UUID
Version 5 UUIDs are named based. They require a namespace (another
valid UUID) and a value (the name). Given the same namespace and
name, the output is always the same.