collin-peng/unique-id

Generate unique id

Installs: 19

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/collin-peng/unique-id

1.0.1 2018-11-07 08:39 UTC

This package is auto-updated.

Last update: 2025-10-08 00:14:11 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.