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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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