ramsey/uuid
Introduction
What Is a UUID?
Getting Started
Requirements
Install With Composer
Using ramsey/uuid
RFC 4122 UUIDs
Version 1: Gregorian Time
Providing a Custom Node
Generating a Random Node
What’s a Clock Sequence?
Privacy Concerns
Version 2: DCE Security
Domains
Custom and Random Nodes
Clock Sequence
Problems With Version 2 UUIDs
Privacy
Limited Uniqueness
Lossy Timestamps
Version 3: Name-based (MD5)
Version 4: Random
Version 5: Name-based (SHA-1)
Custom Namespaces
Version 6: Reordered Time
Custom and Random Nodes
Clock Sequence
Version 1-to-6 Conversion
Ordered-time to Version 6 Conversion
Privacy Concerns
Version 7: Unix Epoch Time
Convert a Version 7 UUID to a ULID
Nonstandard UUIDs
Version 6: Reordered Time
Globally Unique Identifiers (GUIDs)
Converting GUIDs to UUIDs
Other Nonstandard UUIDs
Using In a Database
Storing As a String
Storing As Bytes
Using As a Primary Key
Using As a Unique Key
Insertion Order and Sorting
Customization
Ordered-time Codec
Timestamp-first COMB Codec
Using a Custom Calculator
Using a Custom Validator
Replace the Default Factory
Testing With UUIDs
Inject a UUID of a Specific Type
Returning Specific UUIDs From a Static Method
Mocking UuidInterface
Upgrading ramsey/uuid
Version 3 to 4
What’s New?
What’s Changed?
Uuid Static Methods
Changed Return Types
Deprecations
UuidInterface
Uuid
Interface Changes
UuidInterface
UuidFactoryInterface
Builder\UuidBuilderInterface
Converter\TimeConverterInterface
Provider\TimeProviderInterface
Provider\NodeProviderInterface
Constructor Changes
Uuid
Builder\DefaultUuidBuilder
Provider\Node\FallbackNodeProvider
Provider\Time\FixedTimeProvider
Version 2 to 3
FAQs
How do I fix “rhumsaa/uuid is abandoned” messages?
Why does ramsey/uuid use
final
?
But Why?
Overriding Behavior
Testing With UUIDs
Reference
Uuid
UuidInterface
Fields\FieldsInterface
Rfc4122\UuidInterface
Rfc4122\FieldsInterface
Rfc4122\UuidV1
Rfc4122\UuidV2
Rfc4122\UuidV3
Rfc4122\UuidV4
Rfc4122\UuidV5
Rfc4122\UuidV6
Rfc4122\UuidV7
Guid\Fields
Guid\Guid
Nonstandard\Fields
Nonstandard\Uuid
Nonstandard\UuidV6
UuidFactoryInterface
Types
Exceptions
Helper Functions
Predefined Namespaces
Calculators
Validators
Copyright
ramsey/uuid for Enterprise
ramsey/uuid
Docs
»
Index
Edit on GitHub
Index
_
|
A
|
B
|
C
|
D
|
E
|
F
|
G
|
H
|
I
|
M
|
N
|
R
|
S
|
T
|
U
|
V
_
__toString() (Ramsey\Uuid\Type\TypeInterface method)
(Ramsey\Uuid\UuidInterface method)
A
add() (Ramsey\Uuid\Math\CalculatorInterface method)
B
BuilderNotFoundException
C
CalculatorInterface (interface in Ramsey\Uuid\Math)
compareTo() (Ramsey\Uuid\UuidInterface method)
D
DateTimeException
DceSecurityException
Decimal (class in Ramsey\Uuid\Type)
divide() (Ramsey\Uuid\Math\CalculatorInterface method)
E
equals() (Ramsey\Uuid\UuidInterface method)
F
Fields (class in Ramsey\Uuid\Guid)
(class in Ramsey\Uuid\Nonstandard)
FieldsInterface (interface in Ramsey\Uuid\Fields)
(interface in Ramsey\Uuid\Rfc4122)
fromBase() (Ramsey\Uuid\Math\CalculatorInterface method)
fromBytes() (Ramsey\Uuid\Uuid method)
(Ramsey\Uuid\UuidFactoryInterface method)
fromDateTime() (Ramsey\Uuid\Uuid method)
(Ramsey\Uuid\UuidFactoryInterface method)
fromInteger() (Ramsey\Uuid\Uuid method)
(Ramsey\Uuid\UuidFactoryInterface method)
fromString() (Ramsey\Uuid\Uuid method)
(Ramsey\Uuid\UuidFactoryInterface method)
fromUuidV1() (Ramsey\Uuid\Nonstandard\UuidV6 method)
(Ramsey\Uuid\Rfc4122\UuidV6 method)
G
GenericValidator (class in Ramsey\Uuid\Validator)
getBytes() (Ramsey\Uuid\Fields\FieldsInterface method)
(Ramsey\Uuid\UuidInterface method)
getClockSeq() (Ramsey\Uuid\Rfc4122\FieldsInterface method)
getClockSeqHiAndReserved() (Ramsey\Uuid\Rfc4122\FieldsInterface method)
getClockSeqLow() (Ramsey\Uuid\Rfc4122\FieldsInterface method)
getDateTime() (Ramsey\Uuid\Nonstandard\UuidV6 method)
(Ramsey\Uuid\Rfc4122\UuidV1 method)
(Ramsey\Uuid\Rfc4122\UuidV2 method)
(Ramsey\Uuid\Rfc4122\UuidV6 method)
(Ramsey\Uuid\Rfc4122\UuidV7 method)
getFields() (Ramsey\Uuid\Guid\Guid method)
(Ramsey\Uuid\Nonstandard\Uuid method)
(Ramsey\Uuid\Rfc4122\UuidInterface method)
(Ramsey\Uuid\UuidInterface method)
getHex() (Ramsey\Uuid\UuidInterface method)
getInteger() (Ramsey\Uuid\UuidInterface method)
getLocalDomain() (Ramsey\Uuid\Rfc4122\UuidV2 method)
getLocalDomainName() (Ramsey\Uuid\Rfc4122\UuidV2 method)
getLocalIdentifier() (Ramsey\Uuid\Rfc4122\UuidV2 method)
getMicroseconds() (Ramsey\Uuid\Type\Time method)
getNode() (Ramsey\Uuid\Rfc4122\FieldsInterface method)
getPattern() (Ramsey\Uuid\Validator\ValidatorInterface method)
getSeconds() (Ramsey\Uuid\Type\Time method)
getTimeHiAndVersion() (Ramsey\Uuid\Rfc4122\FieldsInterface method)
getTimeLow() (Ramsey\Uuid\Rfc4122\FieldsInterface method)
getTimeMid() (Ramsey\Uuid\Rfc4122\FieldsInterface method)
getTimestamp() (Ramsey\Uuid\Rfc4122\FieldsInterface method)
getUrn() (Ramsey\Uuid\UuidInterface method)
getValidator() (Ramsey\Uuid\UuidFactoryInterface method)
getVariant() (Ramsey\Uuid\Rfc4122\FieldsInterface method)
getVersion() (Ramsey\Uuid\Rfc4122\FieldsInterface method)
Guid (class in Ramsey\Uuid\Guid)
H
Hexadecimal (class in Ramsey\Uuid\Type)
I
Integer (class in Ramsey\Uuid\Type)
InvalidArgumentException
InvalidBytesException
InvalidUuidStringException
isNegative() (Ramsey\Uuid\Type\NumberInterface method)
isNil() (Ramsey\Uuid\Rfc4122\FieldsInterface method)
isValid() (Ramsey\Uuid\Uuid method)
M
multiply() (Ramsey\Uuid\Math\CalculatorInterface method)
N
NameException
NodeException
NumberInterface (class in Ramsey\Uuid\Type)
R
Ramsey\Uuid (namespace)
,
[1]
,
[2]
Ramsey\Uuid\Exception (namespace)
Ramsey\Uuid\Fields (namespace)
Ramsey\Uuid\Guid (namespace)
,
[1]
Ramsey\Uuid\Math (namespace)
Ramsey\Uuid\Nonstandard (namespace)
,
[1]
,
[2]
Ramsey\Uuid\Rfc4122 (namespace)
,
[1]
,
[2]
,
[3]
,
[4]
,
[5]
,
[6]
,
[7]
,
[8]
,
[9]
Ramsey\Uuid\Type (namespace)
Ramsey\Uuid\Validator (namespace)
RandomSourceException
RoundingMode (class in Ramsey\Uuid\Math)
RoundingMode::CEILING (class constant)
RoundingMode::DOWN (class constant)
RoundingMode::FLOOR (class constant)
RoundingMode::HALF_CEILING (class constant)
RoundingMode::HALF_DOWN (class constant)
RoundingMode::HALF_EVEN (class constant)
RoundingMode::HALF_FLOOR (class constant)
RoundingMode::HALF_UP (class constant)
RoundingMode::UNNECESSARY (class constant)
RoundingMode::UP (class constant)
S
setFactory() (Ramsey\Uuid\Uuid method)
subtract() (Ramsey\Uuid\Math\CalculatorInterface method)
T
Time (class in Ramsey\Uuid\Type)
TimeSourceException
toBase() (Ramsey\Uuid\Math\CalculatorInterface method)
toHexadecimal() (Ramsey\Uuid\Math\CalculatorInterface method)
toInteger() (Ramsey\Uuid\Math\CalculatorInterface method)
toString() (Ramsey\Uuid\Type\TypeInterface method)
(Ramsey\Uuid\UuidInterface method)
toUuidV1() (Ramsey\Uuid\Nonstandard\UuidV6 method)
(Ramsey\Uuid\Rfc4122\UuidV6 method)
TypeInterface (class in Ramsey\Uuid\Type)
U
UnableToBuildUuidException
UnsupportedOperationException
Uuid (class in Ramsey\Uuid)
(class in Ramsey\Uuid\Nonstandard)
uuid1() (Ramsey\Uuid\Uuid method)
(Ramsey\Uuid\UuidFactoryInterface method)
uuid2() (Ramsey\Uuid\Uuid method)
(Ramsey\Uuid\UuidFactoryInterface method)
uuid3() (Ramsey\Uuid\Uuid method)
(Ramsey\Uuid\UuidFactoryInterface method)
uuid4() (Ramsey\Uuid\Uuid method)
(Ramsey\Uuid\UuidFactoryInterface method)
uuid5() (Ramsey\Uuid\Uuid method)
(Ramsey\Uuid\UuidFactoryInterface method)
uuid6() (Ramsey\Uuid\Uuid method)
(Ramsey\Uuid\UuidFactoryInterface method)
uuid7() (Ramsey\Uuid\Uuid method)
Uuid::DCE_DOMAIN_GROUP (class constant)
Uuid::DCE_DOMAIN_ORG (class constant)
Uuid::DCE_DOMAIN_PERSON (class constant)
Uuid::NAMESPACE_DNS (class constant)
Uuid::NAMESPACE_OID (class constant)
Uuid::NAMESPACE_URL (class constant)
Uuid::NAMESPACE_X500 (class constant)
Uuid::NIL (class constant)
Uuid::RESERVED_FUTURE (class constant)
Uuid::RESERVED_MICROSOFT (class constant)
Uuid::RESERVED_NCS (class constant)
Uuid::RFC_4122 (class constant)
Uuid::UUID_TYPE_DCE_SECURITY (class constant)
Uuid::UUID_TYPE_HASH_MD5 (class constant)
Uuid::UUID_TYPE_HASH_SHA1 (class constant)
Uuid::UUID_TYPE_PEABODY (class constant)
Uuid::UUID_TYPE_RANDOM (class constant)
Uuid::UUID_TYPE_REORDERED_TIME (class constant)
Uuid::UUID_TYPE_TIME (class constant)
Uuid::UUID_TYPE_UNIX_TIME (class constant)
UuidExceptionInterface (interface in Ramsey\Uuid\Exception)
UuidFactoryInterface (interface in Ramsey\Uuid)
UuidInterface (interface in Ramsey\Uuid)
(interface in Ramsey\Uuid\Rfc4122)
UuidV1 (class in Ramsey\Uuid\Rfc4122)
UuidV2 (class in Ramsey\Uuid\Rfc4122)
UuidV3 (class in Ramsey\Uuid\Rfc4122)
UuidV4 (class in Ramsey\Uuid\Rfc4122)
UuidV5 (class in Ramsey\Uuid\Rfc4122)
UuidV6 (class in Ramsey\Uuid\Nonstandard)
(class in Ramsey\Uuid\Rfc4122)
UuidV7 (class in Ramsey\Uuid\Rfc4122)
V
validate() (Ramsey\Uuid\Validator\ValidatorInterface method)
Validator (class in Ramsey\Uuid\Rfc4122)
ValidatorInterface (interface in Ramsey\Uuid\Validator)
Read the Docs
v: 4.5.1
Versions
stable
4.5.1
4.5.0
4.4.0
4.3.0
4.2.0
4.1.0
4.x
4.0.0
Downloads
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.