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
    • Version 8: Custom
  • 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
    • Rfc4122\UuidV8
    • 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 »
  • Copyright
  • Edit on GitHub

Copyright¶

Copyright © 2012-2023 Ben Ramsey <ben@benramsey.com>

This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

Next Previous

© Copyright 2012-2023, Ben Ramsey Revision 433b2014.

Read the Docs v: stable
Versions
stable
4.7.3
4.7.2
4.7.1
4.7.0
4.6.0
4.5.1
4.5.0
4.4.0
4.3.0
4.2.0
4.1.0
4.x
4.0.0
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.