Wallogit.com
2017 © Pedro Peláez
A paper key generator for PHP, simply generates a count of words to be used as a paper key., (*2)
Require the package with composer., (*3)
composer require koenhoeijmakers/paper-key-generator
Create a new instance of the class, which can be done with the PaperKeyFactory, or by just instancing one (make sure you inject a valid WordList contract)., (*4)
$paperKey = new PaperKeyGenerator(new EnglishWordList()); $paperKey = PaperKeyFactory::english();
And then call the ->make() method., (*5)
$paperKey->make(); // surface curtain method raw swap bitter zone pink seat rookie marble dog
Optionally you can set a different divider and / or word count., (*6)
$paperKey->setDivider('-')->setCount(6)->make();
// doctor-clown-settle-material-smooth-away
Which can also be done on the fly., (*7)
$paperKey->make([
'divider' => '=',
'count' => 8,
]);
// include=ecology=list=rail=canal=slush=gaze=marriage