PHPackages                             dilneiss/laravel-password-exposed-validation-rule - 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. dilneiss/laravel-password-exposed-validation-rule

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

dilneiss/laravel-password-exposed-validation-rule
=================================================

Laravel validation rule that checks if a password has been exposed in a data breach

3.1(1y ago)01.0k↓50%11LGPL-3.0-onlyPHPPHP ^7.1||^8.0||8.1||8.2

Since Dec 19Pushed 1y agoCompare

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

READMEChangelog (2)Dependencies (4)Versions (3)Used By (1)

🔒 Laravel Password Exposed Validation Rule
==========================================

[](#-laravel-password-exposed-validation-rule)

This package provides a Laravel validation rule that checks if a password has been exposed in a data breach. It uses the haveibeenpwned.com passwords API via the [`divineomega/password_exposed`](https://github.com/DivineOmega/password_exposed) library.

 [![](assets/images/laravel-password-exposed.png)](assets/images/laravel-password-exposed.png)

 [](https://travis-ci.org/DivineOmega/laravel-password-exposed-validation-rule)[![Travis CI](https://camo.githubusercontent.com/ab82ee5c512f872c2b0f836b7e17a2f974fb1bf6305bdab29fa07e096cc69b09/68747470733a2f2f7472617669732d63692e6f72672f446976696e654f6d6567612f6c61726176656c2d70617373776f72642d6578706f7365642d76616c69646174696f6e2d72756c652e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/ab82ee5c512f872c2b0f836b7e17a2f974fb1bf6305bdab29fa07e096cc69b09/68747470733a2f2f7472617669732d63692e6f72672f446976696e654f6d6567612f6c61726176656c2d70617373776f72642d6578706f7365642d76616c69646174696f6e2d72756c652e7376673f6272616e63683d6d6173746572) [![Coverage Status](https://camo.githubusercontent.com/cdf77a8d6f783c7cb58282fde13044096c17a94864f0618075141ea0e4d6c443/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f446976696e654f6d6567612f6c61726176656c2d70617373776f72642d6578706f7365642d76616c69646174696f6e2d72756c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/DivineOmega/laravel-password-exposed-validation-rule?branch=master) [![StyleCI](https://camo.githubusercontent.com/e2eda3a19dda9451dc30cfc4e28d003b4defbad2c294cbdb7402f0bff3a50ad6/68747470733a2f2f7374796c6563692e696f2f7265706f732f3133313231343337352f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/131214375) [![](https://camo.githubusercontent.com/f4b88780d7941ce1beb8be9031ad6221db7452e1cfd49b9d522b9581e6a841fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646976696e656f6d6567612f6c61726176656c2d70617373776f72642d6578706f7365642d76616c69646174696f6e2d72756c652e737667)](https://packagist.org/packages/divineomega/laravel-password-exposed-validation-rule/stats)

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

[](#installation)

To install, just run the following Composer command.

```
composer require divineomega/laravel-password-exposed-validation-rule

```

Please note that this package requires Laravel 5.1 or above.

Usage
-----

[](#usage)

The following code snippet shows an example of how to use the password exposed validation rule.

```
use DivineOmega\LaravelPasswordExposedValidationRule\PasswordExposed;

$request->validate([
    'password' => ['required', new PasswordExposed()],
]);
```

If you wish, you can also set a custom validation message, as shown below.

```
use DivineOmega\LaravelPasswordExposedValidationRule\PasswordExposed;

$request->validate([
    'password' => ['required', (new PasswordExposed())->setMessage('This password is not secure.')],
]);
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75.4% 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

Every ~161 days

Total

2

Last Release

714d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/339a3fb5132ca6fdf590eb87aaf69c97a45b1980dc3bb7109b89b531c56b4d62?d=identicon)[dilneiss](/maintainers/dilneiss)

---

Top Contributors

[![Jord-JD](https://avatars.githubusercontent.com/u/650645?v=4)](https://github.com/Jord-JD "Jord-JD (43 commits)")[![jameswilddev](https://avatars.githubusercontent.com/u/3138458?v=4)](https://github.com/jameswilddev "jameswilddev (6 commits)")[![SteJaySulli](https://avatars.githubusercontent.com/u/60765965?v=4)](https://github.com/SteJaySulli "SteJaySulli (3 commits)")[![dilneiss](https://avatars.githubusercontent.com/u/4564667?v=4)](https://github.com/dilneiss "dilneiss (2 commits)")[![janpio](https://avatars.githubusercontent.com/u/183673?v=4)](https://github.com/janpio "janpio (1 commits)")[![lloricode](https://avatars.githubusercontent.com/u/8251344?v=4)](https://github.com/lloricode "lloricode (1 commits)")[![mikemand](https://avatars.githubusercontent.com/u/745184?v=4)](https://github.com/mikemand "mikemand (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dilneiss-laravel-password-exposed-validation-rule/health.svg)

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

###  Alternatives

[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k35.7M107](/packages/propaganistas-laravel-phone)[spatie/laravel-honeypot

Preventing spam submitted through forms

1.6k6.0M60](/packages/spatie-laravel-honeypot)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[illuminate/validation

The Illuminate Validation package.

18936.7M1.4k](/packages/illuminate-validation)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)

PHPackages © 2026

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