divineomega / password-suggester
Fund package maintenance!
DivineOmega
v1.0.0
2019-06-22 00:37 UTC
Requires
- php: >=7.1
- illuminate/filesystem: ^5.6
- illuminate/translation: ^5.6
- illuminate/validation: ^5.6
- langleyfoxall/laravel-nist-password-rules: ^3.0
This package is auto-updated.
Last update: 2024-11-22 12:22:11 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;