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
Requires
- php: ^7.0
Requires (Dev)
- phpunit/phpunit: ^6.5
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).
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.