divineomega/password-suggester

v1.0.0 2019-06-22 00:37 UTC

This package is auto-updated.

Last update: 2024-10-22 12:09:59 UTC


README

Installation

To install Password Suggester, run the following Composer command from the root of your project.

composer require divineomega/password-suggester

Usage

See the following basic usage example.

use DivineOmega\PasswordSuggester\PasswordSuggester;
use DivineOmega\PasswordSuggester\SuggestionStrategies\AlphanumericStrategy;
use DivineOmega\PasswordSuggester\SuggestionStrategies\NumbersStrategy;
use DivineOmega\PasswordSuggester\SuggestionStrategies\WordsStrategy;

require_once __DIR__.'/../vendor/autoload.php';

$passwordSuggester = new PasswordSuggester();

$strategy = new AlphanumericStrategy();
//$strategy = new WordsStrategy();
//$strategy = new NumbersStrategy();

echo $passwordSuggester->suggest($strategy);
echo PHP_EOL;