PHP code example of ritey / password-strength
1. Go to this page and download the library: Download ritey/password-strength library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ritey / password-strength example snippets
// app/config/app.php
return array(
// ...
'providers' => array(
// ...
\Schuppo\PasswordStrength\PasswordStrengthServiceProvider::class,
);
// ...
);
$v = Validator::make(array(
'password' => '12345QWERTqwert@',
'password' => 'case_diff|numbers|letters|symbols'
));
$v->passes(); // returns true;