Package Data | |
---|---|
Maintainer Username: | schuppo |
Maintainer Contact: | post@schuppo.io (Oliver Schupp) |
Package Create Date: | 2014-01-17 |
Package Last Update: | 2024-03-02 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-14 15:01:04 |
Package Statistics | |
---|---|
Total Downloads: | 2,574,742 |
Monthly Downloads: | 15,621 |
Daily Downloads: | 792 |
Total Stars: | 143 |
Total Watchers: | 6 |
Total Forks: | 54 |
Total Open Issues: | 4 |
This package provides a validator that ensures strong passwords in Laravel 4 & 5 applications. It is influenced a lot by PasswordStrengthBundle for Symfony 2.
It is out now for a while and since there were no complaints it very likely fulfills its purpose.
The provided validations include:
For Laravel 4 users
Just composer require schuppo/password-strength:"~0.10"
.
For Laravel 5 users
Just composer require schuppo/password-strength:"~1.5"
.
If you do run the package on Laravel 5.5+, you can start using the package at this point. package auto-discovery takes care of the magic of adding the service provider.
If you do not run Laravel 5.5 (or higher), then add the following line under the providers
array key in app/config.php:
// app/config/app.php
return array(
// ...
'providers' => array(
// ...
\Schuppo\PasswordStrength\PasswordStrengthServiceProvider::class,
);
// ...
);
Caution
I recently recognized a small conflict in the usage of this package in combination with unique-with: One runs into problems when adding the PasswordStrengthServiceProvider
after UniqueWithValidatorServiceProvider
to the providers array, the rules of this package stay unknown to the Laravel Validator
.
The problem is easy to fix though: Just add the service provider of this package in front of the service provider of unique-with. In that order both packages work fine.
Now Laravel's native Validator
is extended by four rules:
You can apply these rules as described in the validation section on Laravel's website
$v = Validator::make(array(
'password' => '12345QWERTqwert@',
'password' => 'case_diff|numbers|letters|symbols'
));
$v->passes(); // returns true;
Notice that you can validate any value with the new rules. The only reason why this package is called "Password Strength Package" is that it describes its foremost purpose.
[Laravel 5 / Laravel 4]
[1.11/-]
Simplifies symbol validation
[1.10/0.15]
Adds Chinese and Spanish translation
[1.9/0.14]
Improves Polish translation
[1.8/0.13]
Adds Arabic translation
[1.7/0.12]
Adds Czech translation
[1.6/0.11]
[1.5/0.10]
[1.4/0.9]
[1.3/0.8.2]
Adds Romanian translation
[1.2/0.8.1]
Adds Polish translation
[1.1/0.8]
Adds French translation
[1.0.2/0.7]
Updates README.md
[1.0.1]
Make package laravel 5 ready
[0.6]
[0.5.3]
[0.5.2]
[0.5.1]
[0.4.1]
[0.3.1]
This package is under the MIT license. See the complete license:
Issues and feature requests are tracked on GitHub.