Download the PHP package acurrieclark/php-password-verifier without Composer
On this page you can find all versions of the php package acurrieclark/php-password-verifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download acurrieclark/php-password-verifier
More information about acurrieclark/php-password-verifier
Files in acurrieclark/php-password-verifier
Package php-password-verifier
Short Description Framework agnostic password strength checker
License MIT
Informations about the package php-password-verifier
Password Checker 
A framework agnostic password checker for PHP.
Installation
Usage
Class Methods
Setting Password Constraints
setMinLength(int $length)
Set the minimum required length of the password
setMaxLength(int $length)
Set the maximum allowed length of the password
setCheckContainsLetters(boolean $value)
Set the flag to check that the password contains at least one letter
setCheckContainsCapitals(boolean $value)
Set the flag to check that the password contains at least one capital letter
setCheckContainsNumbers(boolean $value)
Set the flag to check that the password contains at least one number
setCheckContainsNumbers(boolean $value)
Set the flag to check that the password contains at least one number
setCheckContainsSpecialChrs(boolean $value)
Set the flag to check that the password contains at least one special character from {}()[]#,:;^.?!|&_`~@$%/\\=+-*"'
setCheckBlacklist(boolean $value)
Set the flag to check if the password matches one of the 10000 most popular passwords from https://github.com/danielmiessler/SecLists
Checking the Password
checkPassword(string $password)
Verify the password based on the constraints imposed. Returns boolean.
getErrors()
Returns an array of errors relating to the verified password
Utility
getSpecialChrs()
Static: Returns an array of the special characters used to check against when setCheckContainsSpecialChrs(true)
has been set. Handy if you want to warn your users which characters they need to include.
License
The MIT License (MIT). Please see the License File for more information.