Skip to content

LSFLK/unique-uid

Repository files navigation

Unique User id generator

Latest Version on Packagist Build Status Quality Score Total Downloads

To generate a Unique UID with given charactor set.You can increase the size of the digits. Even thougt I adivce you to test you self before implement this packge.We have tested over continues

Installation

You can install the package via composer:

composer require lsflk/unique-uid

Usage

// Unique Id with 9 digits lenght and splited in to three segments
UniqueUid::getUniqueAlphanumeric(9,3)

// To check a valid ID
UniqueUid::isValidUniqeId('YMG-RYC-XF7');
//this will return a boolen value

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

PHP Package Boilerplate

This package was generated using the PHP Package Boilerplate.