Methods summary
public static
string
|
#
uuid1( string $node = null, integer $time = null )
Generate a v1 UUID (timestamp based)
Generate a v1 UUID (timestamp based)
Parameters
- $node
string $node what to use for the MAC portion of the UUID. This will be generated
randomly if left as NULL
- $time
integer $time timestamp to use for the UUID. This should be a number of microseconds
since the UNIX epoch.
Returns
string a byte[] representation of a UUID
|
public static
string
|
#
uuid3( mixed $node = null, mixed $namespace = null )
Generate a v3 UUID
Returns
string a byte[] representation of a UUID
|
public static
string
|
#
uuid4( )
Generate a v4 UUID
Returns
string a byte[] representation of a UUID
|
public static
string
|
#
uuid5( mixed $node, mixed $namespace = null )
Generate a v5 UUID
Returns
string a byte[] representation of a UUID
|
public static
|
|
public static
|
#
mint( integer $ver = 1, mixed $node = NULL, mixed $ns = NULL, mixed $time = NULL )
Create a new UUID based on provided data.
Create a new UUID based on provided data.
Parameters
- $ver
integer $ver the UUID version to generate.
- $node
- $ns
- $time
|
public static
|
#
compare( mixed $a, mixed $b )
Compare the binary representations of two UUIDs. The comparison will return
true if they are bit-exact, or if neither is valid.
Compare the binary representations of two UUIDs. The comparison will return
true if they are bit-exact, or if neither is valid.
|
public
|
|
public
|
|
public static
|
|
public static
|
|