locojuhi/unic-public-id

Unic public id generator

1.0.0 2019-10-12 16:15 UTC

This package is auto-updated.

Last update: 2024-09-13 06:18:59 UTC


README

This library provides you a method to generate a hash from a unique id based on the current time stamp in microseconds

Getting Started

Installing

Install the library

composer require locojuhi/unic-public-id

Usage

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!

Running the tests

Coming soon

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • *Contibutors list who participated in this project.

License

This project is licensed under the GPL-3.0 License - see the LICENSE.md file for details