wedgehr/laravel-common-password-validator

Protect your users from using the most common passwords
16,913 1
Install
composer require wedgehr/laravel-common-password-validator
Latest Version:1.4.0
PHP:^8.0
License:MIT
Last Updated:Jun 26, 2025
Links: GitHub  ·  Packagist
Maintainer: pmccarren

laravel-common-password-validator

Laravel Common Password Validator

An optimized and secure validator to check if a given password is too common.

By default, we ensure password is at least 8 characters, and not one of the 10,000 most common.

Installation

Require the validator:

composer require wedgehr/laravel-common-password-validator

Publish the Migration:

php artisan vendor:publish --provider="Wedge\Validators\CommonPassword\ServiceProvider" --tag=migrations

Optionally publish the config file:

php artisan vendor:publish --provider="Wedge\Validators\CommonPassword\ServiceProvider" --tag=config

Seed the common passwords:

php artisan common-password:seed

Usage

This package installs a custom validator common_pwd which can be used in any Validator.

Additionally, you can manually validate a password as such:

Wedge\Validators\CommonPassword\Facade::isCommonPassword('password');

Related Packages

proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rul...

2,445,464 1,140
rap2hpoutre/laravel-credit-card-validator

Laravel credit card validator

132,950 21
tylercd100/laravel-validator-phone

Validate that a phone number is in the correct format

4,377 3
tylercd100/laravel-validator-color

Validate that a certain value is a valid CSS color string in Laravel 5

81,454 15
mikemclin/laravel-wp-password

Laravel package that checks and creates WordPress password hashes

3,667,582 86