.. _reference.helper: ================ Helper Functions ================ ramsey/uuid additionally provides the following helper functions, which return only the string standard representation of a UUID. .. php:function:: Ramsey\\Uuid\\v1([$node[, $clockSeq]]) Generates a string standard representation of a version 1, Gregorian time UUID. :param Ramsey\\Uuid\\Type\\Hexadecimal|null $node: An optional hexadecimal node to use :param int|null $clockSeq: An optional clock sequence to use :returns: A string standard representation of a version 1 UUID :returntype: string .. php:function:: Ramsey\\Uuid\\v2($localDomain[, $localIdentifier[, $node[, $clockSeq]]]) Generates a string standard representation of a version 2, DCE Security UUID. :param int $localDomain: The local domain to use (one of ``Uuid::DCE_DOMAIN_PERSON``, ``Uuid::DCE_DOMAIN_GROUP``, or ``Uuid::DCE_DOMAIN_ORG``) :param Ramsey\\Uuid\\Type\\Integer|null $localIdentifier: A local identifier for the domain (defaults to system UID or GID for *person* or *group*) :param Ramsey\\Uuid\\Type\\Hexadecimal|null $node: An optional hexadecimal node to use :param int|null $clockSeq: An optional clock sequence to use :returns: A string standard representation of a version 2 UUID :returntype: string .. php:function:: Ramsey\\Uuid\\v3($ns, $name) Generates a string standard representation of a version 3, name-based (MD5) UUID. :param Ramsey\\Uuid\\UuidInterface|string $ns: The namespace for this identifier :param string $name: The name from which to generate an identifier :returns: A string standard representation of a version 3 UUID :returntype: string .. php:function:: Ramsey\\Uuid\\v4() Generates a string standard representation of a version 4, random UUID. :returns: A string standard representation of a version 4 UUID :returntype: string .. php:function:: Ramsey\\Uuid\\v5($ns, $name) Generates a string standard representation of a version 5, name-based (SHA-1) UUID. :param Ramsey\\Uuid\\UuidInterface|string $ns: The namespace for this identifier :param string $name: The name from which to generate an identifier :returns: A string standard representation of a version 5 UUID :returntype: string .. php:function:: Ramsey\\Uuid\\v6([$node[, $clockSeq]]) Generates a string standard representation of a version 6, reordered time UUID. :param Ramsey\\Uuid\\Type\\Hexadecimal|null $node: An optional hexadecimal node to use :param int|null $clockSeq: An optional clock sequence to use :returns: A string standard representation of a version 6 UUID :returntype: string
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
calculators.rst | File | 6.92 KB | 0644 |
|
exceptions.rst | File | 2.83 KB | 0644 |
|
fields-fieldsinterface.rst | File | 363 B | 0644 |
|
guid-fields.rst | File | 263 B | 0644 |
|
guid-guid.rst | File | 510 B | 0644 |
|
helper.rst | File | 2.68 KB | 0644 |
|
name-based-namespaces.rst | File | 1.12 KB | 0644 |
|
nonstandard-fields.rst | File | 317 B | 0644 |
|
nonstandard-uuid.rst | File | 562 B | 0644 |
|
nonstandard-uuidv6.rst | File | 1.3 KB | 0644 |
|
rfc4122-fieldsinterface.rst | File | 2.35 KB | 0644 |
|
rfc4122-uuidinterface.rst | File | 587 B | 0644 |
|
rfc4122-uuidv1.rst | File | 608 B | 0644 |
|
rfc4122-uuidv2.rst | File | 1.65 KB | 0644 |
|
rfc4122-uuidv3.rst | File | 311 B | 0644 |
|
rfc4122-uuidv4.rst | File | 301 B | 0644 |
|
rfc4122-uuidv5.rst | File | 313 B | 0644 |
|
rfc4122-uuidv6.rst | File | 1012 B | 0644 |
|
rfc4122-uuidv7.rst | File | 609 B | 0644 |
|
rfc4122-uuidv8.rst | File | 301 B | 0644 |
|
types.rst | File | 2.45 KB | 0644 |
|
uuid.rst | File | 6.91 KB | 0644 |
|
uuidfactoryinterface.rst | File | 4.05 KB | 0644 |
|
uuidinterface.rst | File | 1.68 KB | 0644 |
|
validators.rst | File | 920 B | 0644 |
|