wterberg / laravel-no-common-passwords
Provides validation rules to check passwords against a list of commonly used passwords.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^8.3
- illuminate/contracts: ^10.0 || ^11.0 || ^12.0
- wikimedia/common-passwords: ^0.5
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.75
- larastan/larastan: ^2.11
- orchestra/testbench: ^8.0 || ^9.0 || ^10.0
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.0
- wterberg/phpstan-laravel: ^1.0
- xpertselect/tools: ^1.0
This package is auto-updated.
Last update: 2025-06-05 11:45:05 UTC
README
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.