New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

wedgehr/laravel-common-password-validator

Protect your users from using the most common passwords
17,259 1
Install
composer require wedgehr/laravel-common-password-validator
Latest Version:1.4.0
PHP:^8.0
Laravel:8 – 12
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

dartui/polish-validators

Polish Validators for Laravel

1,574 4
gzero/validator

Gzero CMS Validator

957 1
korko/validator

A simple Laravel extension to add new Validator rules.

756 0
laravel-validators/foundation

An opinionated way to register custom validators in Laravel.

175 3
ahkmunna/validator

Laravel 5 composite unique validator

132 3

Version History

Version Released PHP Laravel License
1.4.0 ^8.0 ^8.0|^9.0|^10.0|^11.0|^12.0 MIT
1.3.0 ^8.0 ^8.0|^9.0|^10.0|^11.0 MIT
1.2.0 ^8.0 ^8.0|^9.0|^10.0 MIT
1.1.0 ^8.0 ^8.0|^9.0 MIT
1.0.2 ^8.0 ^8.0 MIT