![]() ![]() There are 16 32 possible UUIDs, so it’s highly unlikely that there will be a duplicate. When presented as a string, a UUID looks something like this: 379dae82-5a2b-4c4b-8193-b8e7749a3495Ī UUID aims to be practically unique such that information may be uniquely identified across distributed systems, without central coordination of identifiers. A UUID is a 128-bit integer with some special formatting rules based on its variant and version. UUID is an acronym for universally unique identifier. Little did I know this marked the beginning of a long road for a small package that would become popular and widely-used. I had found a problem in need of a PHP userland solution! I set to work right away, quickly releasing a 1.0.0 version. Aside from the PECL uuid package and a handful of small libraries generating UUIDs with mt_rand(), I couldn’t find a PHP userland implementation providing functionality similar to that of the Java and Python libraries. I also looked to other programming language communities to see what problems they had solved that PHP could benefit from.Īt some point, I stumbled across the Java and Python UUID implementations, both of which provide rich interfaces for generating UUIDs. Once I had resolved to create a package for this little experiment, I needed something to work on that presented a problem I felt others in the PHP community had not yet sufficiently solved. I wanted to experience what it was like to manage an open source project and accept pull requests, feedback, and bug reports from others. ![]() I had contributed a number of times to open source projects, but I had never maintained one of my own. In 2012, Composer was taking off, and there was a lot of excitement around creating userland PHP packages and distributing them for others to use. Why was it needed? Why did I open source it? I’ve been asked on more than one occasion why I created ramsey/uuid. So, allow me to introduce you to perhaps a familiar face, an old friend, the ramsey/uuid library for PHP. I mention it only in passing in my “ Dates Are Hard” post. It seems quite absurd for me to introduce ramsey/uuid, a library that saw its 1.0.0 release on July 19, 2012, and is now at version 3.4.1, having had 35 releases since its first, but what’s even more ludicrous is that I haven’t once blogged about this library. ![]()
0 Comments
Leave a Reply. |