2017 © Pedro Peláez
 

library paper-key-generator

image

koenhoeijmakers/paper-key-generator

  • Wednesday, December 27, 2017
  • by koenhoeijmakers
  • Repository
  • 1 Watchers
  • 1 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Paper Key Generator

Packagist Scrutinizer Code Quality license Packagist, (*1)

A paper key generator for PHP, simply generates a count of words to be used as a paper key., (*2)

Installation

Require the package with composer., (*3)

composer require koenhoeijmakers/paper-key-generator

Usage

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

Credits

The Versions

27/12 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php ^7.0

 

by Koen Hoeijmakers

03/09 2017

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php ^7.0

 

by Koen Hoeijmakers