unicodeveloper/laravel-password
Larablocks Analysis
unicodeveloper/laravel-password works with any PHP project: the latest release (1.0.4, Dec 30, 2020) doesn't depend on Laravel.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- No release in the last 12 months (last: Dec 30, 2020)
- 39,808 downloads a month (at least 10,000)
- 423 GitHub stars (at least 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Dec 30, 2020.
- No releases in the last 12 months.
- First released: Jul 2, 2016.
- Monthly downloads: 39,808, up 73% from six months ago.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 4, 2026.
| Install | |
|---|---|
composer require unicodeveloper/laravel-password |
|
| Latest Version: | 1.0.4 |
| PHP: | ~7.0 || ~8.0 |
| License: | MIT |
| Last Updated: | Dec 30, 2020 |
| Links: | GitHub · Packagist |
laravel-password
Guard your users from security problems by preventing them from having dumb passwords
Introduction
This package can be used to verify the user provided password is not one of the top 10,000 worst passwords as analyzed by a respectable IT security analyst. Read about all here, here(wired) or here(telegram)
Installation
PHP 5.5+ or HHVM 3.3+, and Composer are required.
To get the latest version of Laravel Password, simply add the following line to the require block of your composer.json file.
"unicodeveloper/laravel-password": "1.0.*"
You'll then need to run composer install or composer update to download it and have the autoloader updated.
- If you're on Laravel 5.5 or above, that's all you need to do! Check out the usage examples below.
- If you're on Laravel < 5.5, you'll need to register the service provider. Open up
config/app.phpand add the following to theprovidersarray:
Unicodeveloper\DumbPassword\DumbPasswordServiceProvider::class
Usage
Use the rule dumbpwd in your validation like so:
/**
* Get a validator for an incoming registration request.
*
* @param array $data
* @return \Illuminate\Contracts\Validation\Validator
*/
protected function validator(array $data)
{
return Validator::make($data, [
'name' => 'required|max:255',
'email' => 'required|email|max:255|unique:users',
'password' => 'required|min:6|dumbpwd|confirmed',
]);
}
Error shows on the page like so:
By default, the error message returned is This password is just too common. Please try another!.
You can customize the error message by opening resources/lang/en/validation.php and adding to the array like so:
'dumbpwd' => 'You are using a dumb password abeg',
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.
Inspiration
How can I thank you?
Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!
Don't forget to follow me on twitter!
Thanks! Prosper Otemuyiwa.
License
The MIT License (MIT). Please see License File for more information.
Alternatives to unicodeveloper/laravel-password
Implementation of the zxcvbn project by @dropbox for Laravel. Uses zxcvbn-php by...
Service provider to use the zxcvbn project by @dropbox in Laravel 5.4 and above
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 1.0.4 | ~7.0 || | MIT | |
| 1.0.3 | ~5.6| | MIT | |
| 1.0.2 | ~5.6| | MIT | |
| 1.0.1 | ~5.6| | MIT | |
| 1.0.0 | ~5.6| | MIT |