2017 © Pedro Peláez
 

library uuid62

generate a unique Uuid from a value, using base 62.

image

lucasmichot/uuid62

generate a unique Uuid from a value, using base 62.

  • Thursday, December 11, 2014
  • by lucasmichot
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Uuid62

A simple library, (*1)

Latest Stable Version Total Downloads Build Status, (*2)

Requiring / Loading

If you're using Composer to manage dependencies, you can include the following in your composer.json file:, (*3)

"require": {
    "lucasmichot/uuid62": "dev-master"
}

Then, after running composer update or php composer.phar update, you can load the class using Composer's autoloading:, (*4)

require 'vendor/autoload.php'; 

Otherwise, you can simply require the file directly:, (*5)

require_once 'path/to/Uuid62/src/Uuid62/Uuid62.php';

Methods

get()

Create a unique Base62 ID from a string, an object or an array., (*6)

$uuid = Uuid62::get('lucas@semalead.com');
echo $uuid;
// '6cSgR9eY7KkMkgA84Gw007'

$uuid = Uuid62::get(array('mail' => 'lucas@semalead.com'));
echo $uuid;
// '54TRNAo7kI4KqO2ooQC007'

Todos

Create tests and edit README.md, (*7)

Tests

From the project directory, tests can be ran using phpunit, (*8)

License

Released under the MIT License - see LICENSE.txt for details., (*9)

The Versions

11/12 2014

dev-master

9999999-dev https://github.com/lucasmichot/uuid62

generate a unique Uuid from a value, using base 62.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

uuid identifier base 62