collin-peng/unique-id

1.0.1 2018-11-07 08:39 UTC

This package is auto-updated.

Last update: 2024-03-07 20:33:26 UTC


README

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.