ramsey/uuid is a PHP library for generating and working with RFC 4122 version 1, 2, 3, 4, and 5 universally unique identifiers (UUID). ramsey/uuid also supports optional and non-standard features, such as version 6 UUIDs, GUIDs, and other approaches for encoding/decoding UUIDs. A universally unique identifier, or UUID, is a 128-bit unsigned integer, usually represented as a hexadecimal string split into five groups with dashes. The most widely-known and used types of UUIDs are defined by RFC 4122. The probability of duplicating a UUID is close to zero, so they are a great choice for generating unique identifiers in distributed systems. UUIDs can also be stored in binary format, as a string of 16 bytes. The JSON extension is normally enabled by default, but it is possible to disable it. Other required extensions include PCRE and SPL. These standard extensions cannot be disabled without patching PHP’s build system and/or C sources.

Features

  • The only supported installation method for ramsey/uuid is Composer
  • After installing ramsey/uuid, the quickest way to get up-and-running is to use the static generation methods
  • ramsey/uuid provides a number of helpful static methods that help you work with and generate most types of UUIDs, without any special customization of the library
  • ramsey/uuid-doctrine allows the use of ramsey/uuid as a Doctrine field type
  • ramsey/uuid offers a variety of ways to modify the standard behavior of the library through dependency injection
  • It’s possible to replace the default calculator ramsey/uuid uses

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow ramsey/uuid

ramsey/uuid Web Site

Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ramsey/uuid!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Libraries

Registered

2021-05-24