ramsey/uuid
  • Introduction
    • What Is a UUID?
  • Getting Started
    • Requirements
    • Install With Composer
    • Using ramsey/uuid
  • RFC 4122 UUIDs
    • Version 1: Time-based
      • 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
  • Nonstandard UUIDs
    • Version 6: Ordered-Time
      • Custom and Random Nodes
      • Clock Sequence
      • Version 1-to-6 Conversion
      • Ordered-time to Version 6 Conversion
      • Privacy Concerns
    • 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
    • Nonstandard\UuidV6
    • Guid\Fields
    • Guid\Guid
    • Nonstandard\Fields
    • Nonstandard\Uuid
    • UuidFactoryInterface
    • Types
    • Exceptions
    • Helper Functions
    • Predefined Namespaces
    • Calculators
    • Validators
  • Copyright
  • ramsey/uuid for Enterprise
ramsey/uuid
  • Docs »
  • Search
  • Edit on GitHub


© Copyright 2020, Ben Ramsey Revision 8505afd4.

Read the Docs v: stable
Versions
stable
5.x
4.3.0
4.2.0
4.1.0
4.0.0
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.