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
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
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