Download the PHP package divineomega/laravel-password-exposed-validation-rule without Composer
On this page you can find all versions of the php package divineomega/laravel-password-exposed-validation-rule. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download divineomega/laravel-password-exposed-validation-rule
More information about divineomega/laravel-password-exposed-validation-rule
Files in divineomega/laravel-password-exposed-validation-rule
Package laravel-password-exposed-validation-rule
Short Description Laravel validation rule that checks if a password has been exposed in a data breach
License LGPL-3.0-only
Informations about the package 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 jord-jd/password_exposed library.
Compatibility
- PHP: 7.4+ and 8.x
- Laravel: 8.x through 12.x
Installation
To install, just run the following Composer command.
Please note that this package requires Laravel 8.0 or above.
Usage
The following code snippet shows an example of how to use the password exposed validation rule.
If you wish, you can also set a custom validation message, as shown below.
Backward Compatibility
PasswordExposed remains available as a backwards-compatible alias for PasswordNotExposed.
Testing / Mocking
If you need deterministic tests, you can inject a checker directly or use a resolver.
All versions of laravel-password-exposed-validation-rule with dependencies
jord-jd/password_exposed Version ^5.0
illuminate/contracts Version ^8.0||^9.0||^10.0||^11.0||^12.0