nordpeak / readable-string-generator
Small library that generates a random human readable string.
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/nordpeak/readable-string-generator
Requires
- php: ~7.0
Requires (Dev)
- phpunit/phpunit: ~5.0
This package is auto-updated.
Last update: 2025-09-24 18:33:54 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 ]);