2017 © Pedro Peláez
 

library uuid

Generate a UUID according to the RFC 4122 standard. Only support for version 5 UUID are built-in.

image

fkulakov/uuid

Generate a UUID according to the RFC 4122 standard. Only support for version 5 UUID are built-in.

  • Wednesday, June 6, 2018
  • by fkulakov
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 100 % Grown

The README.md

Uuid Generator

Total Downloads codecov Build Status Code Quality, (*1)

Class to generate a universally unique identifier (UUID) according to the RFC 4122 standard. Only support for version 5 UUIDs are built-in., (*2)

Installation

composer require fkulakov/uuid dev-master

Usage

For a repeatable generate a UUID from some $source string use source() method:, (*3)

Uuid::source($source)->generate();

For unrepeatable generate a random UUID use random() method:, (*4)

Uuid::random()->generate();

For change namespace use setNamespace() method:, (*5)

Uuid::random()->setNamespace($namespace)->generate(); 
Uuid::source($source)->setNamespace($namespace)->generate(); 
Uuid::random()->setNamespace($namespace)->generate(); 

NAMESPACE_DNS is used by default., (*6)

Notes

The UUID specification: http://tools.ietf.org/html/rfc4122., (*7)

The Versions

06/06 2018

dev-master

9999999-dev https://github.com/fkulakov/uuid

Generate a UUID according to the RFC 4122 standard. Only support for version 5 UUID are built-in.

  Sources   Download

MIT

The Requires

  • php ^7.2

 

The Development Requires

uuid rfc4122