chris-moreton / username-generator
Generate random usernames
v1.0.2
2017-01-04 11:45 UTC
Requires
- php: >=5.4.0
Requires (Dev)
- phpspec/phpspec: ~2.0
This package is not auto-updated.
Last update: 2024-11-09 21:17:05 UTC
README
This is a super-simple username generator, generating names such as "Juicy Falcon" or "Super Pink Osprey".
Add to project using Composer
composer require chris-moreton/username-generator
Usage
include 'vendor/autoload.php';
use Netsensia\Usernames\Generator;
$generator = new Generator();
// create a username with two parts, e.g. Humble-Strawberry
$username = $generator->generate(2);
Development
Clone the repo and compose
git clone git@github.com:chris-moreton/username-generator
cd username-generator
php composer.phar install
Run the tests
bin/phpspec run --format=pretty -vvv --stop-on-failure