Correct Horse Battery Staple password generator library

1.0.1 2018-08-14 05:24 UTC

This package is auto-updated.

Last update: 2024-05-14 18:36:17 UTC


README

Mini-library for generating CHBS passwords.

Usage

# 1. Provide IWordSource instance... 

# 2. Configure...
$config = new PorkChopSandwiches\CHBS\Config\PasswordGeneratorConfig();
$config->setMinimumWords(3);

# 3. Create Password Generator instance...
$pg = new PorkChopSandwiches\CHBS\PasswordGenerator($word_source, $config);

# Generate a single password...
$single_password = $pg->generate();

# Generate many passwords...
foreach ($pg->generator() as $password) {
  # ...
}

Tests

./vendor/bin/phpunit --bootstrap vendor/autoload.php tests/