PHPackages                             unicodeveloper/laravel-password - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. unicodeveloper/laravel-password

ActiveLibrary[Security](/categories/security)

unicodeveloper/laravel-password
===============================

Protect your users from entering dumb and common passwords

1.0.4(5y ago)4261.4M↓23.1%542MITPHPPHP ~7.0 || ~8.0

Since Jul 2Pushed 5y ago13 watchersCompare

[ Source](https://github.com/unicodeveloper/laravel-password)[ Packagist](https://packagist.org/packages/unicodeveloper/laravel-password)[ Docs](https://github.com/unicodeveloper/laravel-password)[ RSS](/packages/unicodeveloper-laravel-password/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (2)

laravel-password
================

[](#laravel-password)

[![Latest Stable Version](https://camo.githubusercontent.com/94585417f98ddbc72649308b9b2c293b6cde303b8541684754548f46cbb09ca2/68747470733a2f2f706f7365722e707567782e6f72672f756e69636f646576656c6f7065722f6c61726176656c2d70617373776f72642f762f737461626c652e737667)](https://packagist.org/packages/unicodeveloper/laravel-password)[![License](https://camo.githubusercontent.com/a06fb2b48d97a35b1cda1c3afbacee465880a9ca87094adceb0d748fe21fb71d/68747470733a2f2f706f7365722e707567782e6f72672f756e69636f646576656c6f7065722f6c61726176656c2d70617373776f72642f6c6963656e73652e737667)](LICENSE.md)[![Quality Score](https://camo.githubusercontent.com/cbe83b8c61543c0e7097d0f3701f88b8bed2d3ffb641c0725556db3568250f74/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f756e69636f646576656c6f7065722f6c61726176656c2d70617373776f72642e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/unicodeveloper/laravel-password)[![Total Downloads](https://camo.githubusercontent.com/2085e96627d4f736af1f07991940e51df784fc40a56726becf8f85967c925533/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f756e69636f646576656c6f7065722f6c61726176656c2d70617373776f72642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/unicodeveloper/laravel-password)

> #### Guard your users from security problems by preventing them from having dumb passwords
>
> [](#guard-your-users-from-security-problems-by-preventing-them-from-having-dumb-passwords)

### Introduction

[](#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](https://xato.net/10-000-top-passwords-6d6380716fe0#.473dkcjfm), [here(wired)](http://www.wired.com/2013/12/web-semantics-the-ten-thousand-worst-passwords/) or [here(telegram)](http://www.telegraph.co.uk/technology/internet-security/10303159/Most-common-and-hackable-passwords-on-the-internet.html)

Installation
------------

[](#installation)

[PHP](https://php.net) 5.5+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) 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 &lt; 5.5, you'll need to register the service provider. Open up `config/app.php` and add the following to the `providers` array:

```
Unicodeveloper\DumbPassword\DumbPasswordServiceProvider::class
```

Usage
-----

[](#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:

[![screen shot 2016-07-02 at 1 22 45 pm](https://cloud.githubusercontent.com/assets/2946769/16540468/c6bd71f2-405d-11e6-8f34-d3a9b1b27e77.png)](https://cloud.githubusercontent.com/assets/2946769/16540468/c6bd71f2-405d-11e6-8f34-d3a9b1b27e77.png)

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',
```

[![screen shot 2016-07-02 at 2 12 14 pm](https://cloud.githubusercontent.com/assets/2946769/16540503/103e0390-405f-11e6-9c4c-5d02dc1ce7ec.png)](https://cloud.githubusercontent.com/assets/2946769/16540503/103e0390-405f-11e6-9c4c-5d02dc1ce7ec.png)

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.

Inspiration
-----------

[](#inspiration)

- [Eugene Mutai](https://github.com/kn9ts/dumb-passwords)

How can I thank you?
--------------------

[](#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](https://twitter.com/unicodeveloper)!

Thanks! Prosper Otemuyiwa.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity60

Solid adoption and visibility

Community29

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~410 days

Total

5

Last Release

1966d ago

PHP version history (2 changes)1.0.0PHP ~5.6|~7.0

1.0.4PHP ~7.0 || ~8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ae318eb1f5f21579ddee07834130c1169ae6a0771044c3de671dfb02cd79c59f?d=identicon)[unicodeveloper](/maintainers/unicodeveloper)

---

Top Contributors

[![unicodeveloper](https://avatars.githubusercontent.com/u/2946769?v=4)](https://github.com/unicodeveloper "unicodeveloper (14 commits)")[![jkudish](https://avatars.githubusercontent.com/u/260253?v=4)](https://github.com/jkudish "jkudish (9 commits)")[![ajohnson6494](https://avatars.githubusercontent.com/u/5192820?v=4)](https://github.com/ajohnson6494 "ajohnson6494 (2 commits)")[![michaelvickersuk](https://avatars.githubusercontent.com/u/13500452?v=4)](https://github.com/michaelvickersuk "michaelvickersuk (2 commits)")[![shalvah](https://avatars.githubusercontent.com/u/14361073?v=4)](https://github.com/shalvah "shalvah (2 commits)")[![Shaun2D2](https://avatars.githubusercontent.com/u/3941040?v=4)](https://github.com/Shaun2D2 "Shaun2D2 (2 commits)")[![johannesschobel](https://avatars.githubusercontent.com/u/9431350?v=4)](https://github.com/johannesschobel "johannesschobel (1 commits)")[![juukie](https://avatars.githubusercontent.com/u/2678657?v=4)](https://github.com/juukie "juukie (1 commits)")[![Chinoms](https://avatars.githubusercontent.com/u/18566684?v=4)](https://github.com/Chinoms "Chinoms (1 commits)")

---

Tags

securitypasswordsunicodeveloperdumb

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/unicodeveloper-laravel-password/health.svg)

```
[![Health](https://phpackages.com/badges/unicodeveloper-laravel-password/health.svg)](https://phpackages.com/packages/unicodeveloper-laravel-password)
```

###  Alternatives

[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41478.1M118](/packages/robrichards-xmlseclibs)[spatie/laravel-csp

Add CSP headers to the responses of a Laravel app

8569.6M19](/packages/spatie-laravel-csp)[jeremykendall/password-validator

Password Validator validates password\_hash generated passwords, rehashes passwords as necessary, and will upgrade legacy passwords.

14469.9k3](/packages/jeremykendall-password-validator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
