mhfereydouni/unique-code-generator

This package is abandoned and no longer maintained. The author suggests using the nextapps/unique-codes package instead.

This is my package unique-code-generator

1.1.0 2022-05-16 07:01 UTC

README

68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f737570706f72742d756b7261696e652e7376673f743d31

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.