Via Composer
$ composer require amneale/dictionaryCreating a dictionary from strings, and reading the content a random, shuffled order:
$reader = new ShuffleReader();
$dictionary = new Dictionary('foo', 'bar', 'baz');
for ($i = 0; $i < count($dictionary); ++$i) {
echo $reader->read($dictionary) . "\n";
}Loading a dictionary from a file:
$dictionary = Dictionary\Loader\SimpleFileLoader::fromFile('/foo/bar/baz.txt');Loading a dictionary from a CSV file:
$dictionary = Dictionary\Loader\SimpleFileLoader::fromFile('/foo/bar/baz.csv', ',');To run automatic code-style fixer
$ make fmtTo run all tests
$ make test