2017 © Pedro Peláez
 

library goatherd-library-uuid

UUID generator for PHP 5.3 or newer

image

goatherd/goatherd-library-uuid

UUID generator for PHP 5.3 or newer

  • Wednesday, June 5, 2013
  • by goatherd
  • Repository
  • 1 Watchers
  • 3 Stars
  • 1,692 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 22 Forks
  • 9 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

Pure PHP UUID generator

Dual-licensed under BSDL (2-clause) or Apache 2.0 license, (*1)

Original author: Fredrik Lindberg, (*2)

Adjustments

Optimised for use with PHP 5.3 or newer. Coding conventions now are closer to PEAR standards., (*3)

The original single class was refactored as factory pattern., (*4)

Composer support was added and registered with packagist. The component will be integrated with goatherd library., (*5)

With beta and stable release some improvements and unit tests will be added., (*6)

Please note that the interface is not yet final., (*7)

Usage

use \Goatherd\Uuid\Factory;
use \Goatherd\Uuid\UuidInterface;

// default version 5 byte formated uuid
$uuid = Factory::generate();

// version 4 string formated uuid
$uuid = Factory::generate(Factory::UUID_RANDOM, UuidInterface::FMT_STRING);

// get version 4 uuid from generator instance
$uuidGenerator = new \Goatherd\Uuid\V4();
$uuid = $uuidGenerator(Uuid::FMT_STRING);

Supported formats are FMT_STRING, FMT_BYTE and FMT_BINARY. UUID version 1, 3, 4 and 5 are available., (*8)

The Versions

05/06 2013

dev-master

9999999-dev http://github.com/goatherd/uuid/

UUID generator for PHP 5.3 or newer

  Sources   Download

BSD

The Requires

  • php >=5.3.0

 

uuid goatherd

05/06 2013

dev-development

dev-development http://github.com/goatherd/uuid/

UUID generator for PHP 5.3 or newer

  Sources   Download

BSD

The Requires

  • php >=5.3.0

 

uuid goatherd

03/11 2012

dev-1.0-pre

dev-1.0-pre http://github.com/goatherd/uuid/

UUID generator for PHP 5.3 or newer

  Sources   Download

BSD

The Requires

  • php >=5.3.0

 

uuid goatherd