PHPackages                             woodynadobhar/laravel-stupid-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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. woodynadobhar/laravel-stupid-password

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

woodynadobhar/laravel-stupid-password
=====================================

A laravel package wrapper for northox/stupid-password

v1.0(6y ago)01.4kBSD-3-ClausePHP

Since Jun 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/WoodyNaDobhar/laravel-stupid-password)[ Packagist](https://packagist.org/packages/woodynadobhar/laravel-stupid-password)[ RSS](/packages/woodynadobhar-laravel-stupid-password/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

LaravelStupidPassword
=====================

[](#laravelstupidpassword)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f80ee9adfe6ac41d4136bd4d4360c8f443e14e184e50a21bc584a223ee59dcf2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776f6f64796e61646f626861722f6c61726176656c2d7374757069642d70617373776f72642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/woodynadobhar/laravel-stupid-password)[![Total Downloads](https://camo.githubusercontent.com/38254a36f837be66d6d0471204640f4fd0c81341377829070f6c66b14a03e9dd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776f6f64796e61646f626861722f6c61726176656c2d7374757069642d70617373776f72642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/woodynadobhar/laravel-stupid-password)

A Laravel package wrapper for [Northox Stupid Password](https://github.com/northox/stupid-password).

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

[](#installation)

Install the package via Composer:

```
composer require woodynadobhar/laravelstupidpassword
```

Publish the configuration file:

```
php artisan vendor:publish --provider="WoodyNaDobhar\\LaravelStupidPassword\\LaravelStupidPasswordServiceProvider" --tag=config
```

This will create a configuration file at `config/laravelstupidpassword.php`.

Usage
-----

[](#usage)

### Automatically

[](#automatically)

To enforce password strength validation, simply add `stupidpassword` to your validation rules:

```
'password' => 'min:6|required_with:password_confirmation|same:password_confirmation|stupidpassword',
```

### Manually

[](#manually)

You can also validate passwords manually by using the `LaravelStupidPassword` class:

```
use WoodyNaDobhar\LaravelStupidPassword\LaravelStupidPassword;

$stupidPass = new LaravelStupidPassword(
    config('laravelstupidpassword.max'),
    config('laravelstupidpassword.environmentals'),
    null,
    null,
    config('laravelstupidpassword.options')
);

if (!$stupidPass->validate($input['password'])) {
    $errors = implode(' ', $stupidPass->getErrors());
    throw new \Exception("Your password is too weak: $errors");
}
```

Configuration
-------------

[](#configuration)

The configuration file `laravelstupidpassword.php` allows customization of the following options:

- **max:** Maximum number of passwords to evaluate.
- **environmentals:** An array of additional weak passwords to consider.
- **options:** Advanced configuration options specific to the [Northox Stupid Password](https://github.com/northox/stupid-password) library.

Dependencies
------------

[](#dependencies)

This package is a Laravel wrapper for [Northox Stupid Password](https://github.com/northox/stupid-password).

Change Log
----------

[](#change-log)

Please see the [CHANGELOG](changelog.md) for details on recent changes.

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

[](#contributing)

See [CONTRIBUTING](contributing.md) for guidelines and a to-do list.

Security
--------

[](#security)

If you discover any security-related issues, please contact the [Northox Stupid Password](https://github.com/northox/stupid-password) repository owner.

Versioning
----------

[](#versioning)

This package follows Semantic Versioning (SemVer). Updates are published to [Packagist](https://packagist.org/packages/woodynadobhar/laravel-stupid-password).

Credits
-------

[](#credits)

- [Danny Fullerton](https://github.com/northox) for the Stupid Password library.
- [Krisjanis Ozolins](https://github.com/woodynadobhar) for the Laravel package template.
- [All Contributors](../../contributors)

License
-------

[](#license)

This package is licensed under the BSD License. In other words, it is free software.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

2205d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1338540?v=4)[Woody](/maintainers/WoodyNaDobhar)[@WoodyNaDobhar](https://github.com/WoodyNaDobhar)

---

Top Contributors

[![WoodyNaDobhar](https://avatars.githubusercontent.com/u/1338540?v=4)](https://github.com/WoodyNaDobhar "WoodyNaDobhar (19 commits)")

### Embed Badge

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

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

PHPackages © 2026

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