https://github.com/divineomega/password-suggester
https://github.com/divineomega/password-suggester
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/divineomega/password-suggester
- Owner: DivineOmega
- License: lgpl-3.0
- Created: 2019-06-19T20:59:19.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-22T00:38:06.000Z (about 7 years ago)
- Last Synced: 2025-06-09T18:06:49.318Z (about 1 year ago)
- Language: PHP
- Size: 260 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Password Suggester
## Installation
To install Password Suggester, run the following Composer command from the
root of your project.
```bash
composer require divineomega/password-suggester
```
## Usage
See the following basic usage example.
```php
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;
```