Download the PHP package npluis/passwordgenerator without Composer
On this page you can find all versions of the php package npluis/passwordgenerator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package passwordgenerator
PasswordGenerator
Simple Password Generator for PHP
Requirements
- PHP 7.0
Installation
composer require npluis/passwordgenerator
Usage Password Generator
basic usage
- length between 8 and 10:
$generator->create(8,10); - fixed length:
$generator->create(12,12); - only a-zA-Z0-0:
$generator->setAllowBrackets(false)->setAllowSpecial(false)->create();
advanced usage
use your own character set
$generator->setChars('AbCdEfG@#$%%<>;')->setAllowSpecial(false)->setAllowBrackets(false)
Usage Password Checker
To prevent weak passwords from being generated or entered by a user when creating a new one you can use some checks.
check for blacklist words (like password, admin, qwerty, etc)
check for weak passwords like 1111 or aaa by specifying the minimum number of unique lower case characters
$checker->setMinUniqueChars(3);
$checker->checkPassword('111Aa'); //UNIQUE_CHARS only two unique lowercase chars a and 1 All versions of passwordgenerator with dependencies
PHP Build Version
Package Version
No informations.
The package npluis/passwordgenerator contains the following files
Loading the files please wait ...