Skip to content

mhfereydouni/unique-code-generator

Repository files navigation

This is my package unique-code-generator

Latest Version on Packagist Tests Total Downloads

This package helps to generate codes which look like random strings. These codes can be used instead of your items ids to hide data.

Installation

You can install the package via composer:

composer require mhfereydouni/unique-code-generator

Usage

$uniqueCodeGenerator = new Mhfereydouni\UniqueCodeGenerator\UniqueCodeGenerator(7230323, 9006077);
echo $uniqueCodeGenerator
            ->characterList('LQJCKZMWDPTSXRGANYVBHF')
            ->outputLength(6)
            ->generate(4);

// output: QDWQGD

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

About

This package generate codes that look like they are random.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages