Skip to content

CollinPeng/unique-id

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unique-id

This library implements uuid and object id(like mongodb object id).

Latest Version Software License

Install

Install with composer.

composer require collin-peng/unique-id

Usage

use CollinPeng\UniqueId;

$uniqueId = new UniqueId();

// generate object id
$uniqueId->objectId();


// generate uuid
$uniqueId->uuid()

Testing

You can use the following command to test:

make test

License

The MIT License (MIT). Please see License File for more information.