This package helps to generate codes which look like random strings. These codes can be used instead of your items ids to hide data.
You can install the package via composer:
composer require mhfereydouni/unique-code-generator
$uniqueCodeGenerator = new Mhfereydouni\UniqueCodeGenerator\UniqueCodeGenerator(7230323, 9006077);
echo $uniqueCodeGenerator
->characterList('LQJCKZMWDPTSXRGANYVBHF')
->outputLength(6)
->generate(4);
// output: QDWQGD
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.