This library provides you a method to generate a hash from a unique id based on the current time stamp in microseconds
Install the library
composer require locojuhi/unic-public-id
Mostly you have to declare the use statement, ussually you will need to use:
use UnicPublicId\PublicId;
then you can use the generate
method as follow:
PublicId::generate([object $object = null]);
Note that the $object argument is optional!
Coming soon
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- *Contibutors list who participated in this project.
This project is licensed under the GPL-3.0 License - see the LICENSE.md file for details