package Default

 Methods

is_valid()

is_valid($uuid) 
Static

Parameters

$uuid

Generate v3 UUID

v3(\uuid $namespace, string $name) 
Static

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

$namespace

\uuid

$name

string

Generate v4 UUID

v4() 
Static

Version 4 UUIDs are pseudo-random.

Generate v5 UUID

v5(\uuid $namespace, string $name) 
Static

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.

Parameters

$namespace

\uuid

$name

string