Looking to hire Laravel developers? Try LaraJobs

laravel-no-common-passwords maintained by wterberg

Description
Provides validation rules to check passwords against a list of commonly used passwords.
Last update
2025/06/05 13:37 (dev-main)
License
Links
Downloads
18

Comments
comments powered by Disqus

WterBerg / Laravel No Common Passwords

github.com/WterBerg/laravel-no-common-passwords

Provides Laravel validation rules to check passwords against a list of commonly used passwords.

License

View the LICENSE.md file for licensing details.

Installation

Installation of wterberg/laravel-no-common-passwords is done via Composer.

composer require wterberg/laravel-no-common-passwords

Usage

Simply register the provided validation rules in your Laravel Validator instances.

use WterBerg\Laravel\NoCommonPasswords\Rules\NoCommonPassword;

...

$validator = Validator::make(
    $dataToValidate,
    ['password' => ['required', 'string', 'min:8', new NoCommonPassword()]]
);

Translations

This project uses the following translatable strings:

Translatable strings
"Common passwords are not allowed."

Note: The project provides no translation files. Consuming projects are free to provide their own translations for the languages that are relevant.