PHPackages                             softcomtecnologia/uuid - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. softcomtecnologia/uuid

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

softcomtecnologia/uuid
======================

NO LONGER MAINTAINED. Use ramsey/uuid instead. A PHP 5.3+ library for generating RFC 4122 version 1, 3, 4, and 5 universally unique identifiers (UUID).

2.8.3(5y ago)05.0k↓33.3%MITPHPPHP &gt;=5.3.3

Since Jul 20Pushed 5y agoCompare

[ Source](https://github.com/softcomtecnologia/rhumsaa-uuid)[ Packagist](https://packagist.org/packages/softcomtecnologia/uuid)[ Docs](https://github.com/ramsey/rhumsaa-uuid)[ RSS](/packages/softcomtecnologia-uuid/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (24)Used By (0)

Rhumsaa\\Uuid for PHP
=====================

[](#rhumsaauuid-for-php)

***WARNING: This package is no longer maintained. Use [ramsey/uuid](https://github.com/ramsey/uuid) instead.***

---

[![Build Status](https://camo.githubusercontent.com/210cc996cf543722a68447513fbbd72d5b812999d2bb45963c4099ce3ddc8fbc/68747470733a2f2f7472617669732d63692e6f72672f72616d7365792f757569642e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/ramsey/uuid)[![Coverage Status](https://camo.githubusercontent.com/8c5cc4d4d6f3c5ab9a50ce35436e8d509baea7b23a0b5734fb39ebeb3fc427ed/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f72616d7365792f757569642f62616467652e706e67)](https://coveralls.io/r/ramsey/uuid)[![Latest Stable Version](https://camo.githubusercontent.com/6c3ce1da242300ce1af6614aa0703470bb27aa26d78f879e9d11b7b0261c892b/68747470733a2f2f706f7365722e707567782e6f72672f7268756d7361612f757569642f762f737461626c652e706e67)](https://packagist.org/packages/rhumsaa/uuid)[![Latest Unstable Version](https://camo.githubusercontent.com/60322fffd53d6cc9613556ca7c289e7bae74ad41a9a544a8144b83b93ba53dbd/68747470733a2f2f706f7365722e707567782e6f72672f7268756d7361612f757569642f762f756e737461626c652e706e67)](https://packagist.org/packages/rhumsaa/uuid)[![Total Downloads](https://camo.githubusercontent.com/9932e9cff4ae482160df12350e57faddc3f3ef06f76296fa822f78e89637ae5d/68747470733a2f2f706f7365722e707567782e6f72672f7268756d7361612f757569642f646f776e6c6f6164732e706e67)](https://packagist.org/packages/rhumsaa/uuid)[![HHVM Status](https://camo.githubusercontent.com/1d8fcb7882f25f23984b4d667221c92c05d62dc04f07f7d5660ecf9612d7c09e/687474703a2f2f6868766d2e683463632e64652f62616467652f7268756d7361612f757569642e706e67)](http://hhvm.h4cc.de/package/rhumsaa/uuid)

About
-----

[](#about)

Rhumsaa\\Uuid is a PHP 5.3+ library for generating and working with [RFC 4122](http://tools.ietf.org/html/rfc4122) version 1, 3, 4, and 5 universally unique identifiers (UUID).

From [Wikipedia](http://en.wikipedia.org/wiki/Universally_unique_identifier):

> The intent of UUIDs is to enable distributed systems to uniquely identify information without significant central coordination. In this context the word unique should be taken to mean "practically unique" rather than "guaranteed unique". Since the identifiers have a finite size, it is possible for two differing items to share the same identifier. The identifier size and generation process need to be selected so as to make this sufficiently improbable in practice. Anyone can create a UUID and use it to identify something with reasonable confidence that the same identifier will never be unintentionally created by anyone to identify something else. Information labeled with UUIDs can therefore be later combined into a single database without needing to resolve identifier (ID) conflicts.

Much inspiration for this library came from the [Java](http://docs.oracle.com/javase/6/docs/api/java/util/UUID.html) and [Python](http://docs.python.org/3/library/uuid.html) UUID libraries.

API Documentation
-----------------

[](#api-documentation)

The [latest class API documentation](http://docs.benramsey.com/ramsey-uuid/2.8/) is available online. This project uses [ApiGen](http://apigen.org/) to generate this documentation. To generate the documentation on your own, run `apigen` from the root of the project. This will generate documentation in the `build/apidocs/` folder.

Requirements
------------

[](#requirements)

Some methods in this library have requirements due to integer size restrictions on 32-bit and 64-bit builds of PHP. A 64-bit build of PHP and the [Moontoast\\Math](https://github.com/moontoast/math)library are recommended. However, this library is designed to work on 32-bit builds of PHP without Moontoast\\Math, with some degraded functionality. Please check the API documentation for more information.

If a particular requirement is not present, then a `Rhumsaa\Uuid\Exception\UnsatisfiedDependencyException`is thrown, allowing one to catch a bad call in an environment where the call is not supported and gracefully degrade.

Examples
--------

[](#examples)

```
