nordpeak / readable-string-generator
Small library that generates a random human readable string.
1.0.2
2020-08-09 12:08 UTC
Requires
- php: ~7.0
Requires (Dev)
- phpunit/phpunit: ~5.0
This package is auto-updated.
Last update: 2024-11-24 16:47:45 UTC
README
Small library that generates a random human readable string.
Examples
- WASABO
- LALOGO
- WOXIVA
- XORUKO
- MODU
- XUSU
Installation
This package uses composer so you can just add nordpeak/readable-string-generator as a dependency to your
composer.json` file or execute the following command:
composer require nordpeak/readable-string-generator
Usage
Very straightforward.
use Nordpeak\ReadableStringGenerator; // default behaviour ReadableStringGenerator::generate(); // => "WASABO" // change length ReadableStringGenerator::generate(["length" => "4"]); // => "MODU"
Options
The following options are available:
ReadableStringGenerator::generate([ "length" => "8" // default = 6 ]);