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

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

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

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

021PHP

Since May 13Pushed 3y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

🔒 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

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

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

---

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)")[![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)")

### Embed Badge

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

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

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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