2017 © Pedro Peláez
 

library druuid

DrUUID RFC 4122 library for PHP

image

jkingweb/druuid

DrUUID RFC 4122 library for PHP

  • Thursday, February 9, 2017
  • by JKingweb
  • Repository
  • 2 Watchers
  • 2 Stars
  • 1,066 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 2 Versions
  • 46 % Grown

The README.md

DrUUID

An RFC 4122 (UUID) implementation for PHP., (*1)

Usage

DrUUID's API has been designed to be as absolutely simple to use as possible. Generating a UUID is as simple as including the library and issuing a single method call:, (*2)

<?php
require_once "autoload.php";
use JKingWeb\DrUUID\UUID;
echo UUID::mint();
?>

Compliance

DrUUID fully complies with RFC 4122, and therefore supports Version 1 (time-based), 3 (MD5-based), 4 (random) and 5 (SHA1-based) UUIDs:, (*3)

<?php
require_once "autoload.php";
use JKingWeb\DrUUID\UUID;
echo UUID::mint(1)."\n";
echo UUID::mint(3, "some identifier", $private_namespace)."\n";
echo UUID::mint(4)."\n";
echo UUID::mint(5, "some identifier", $private_namespace)."\n";

More information

DrUUID includes an extensive and exhaustive HTML manual. A complete break-down of features and their use is available therein., (*4)

The Versions

09/02 2017

dev-master

9999999-dev

DrUUID RFC 4122 library for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

uuid

09/02 2017

3.0.0

3.0.0.0

DrUUID RFC 4122 library for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

uuid