darookee / pwnwedpassword-validator
PwnedPassword Validator Constraint for Symfony
Installs: 478
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/darookee/pwnwedpassword-validator
Requires
- ext-curl: *
This package is auto-updated.
Last update: 2025-10-08 00:50:48 UTC
README
This Validator uses curl to query the https://haveibeenpwned.com API for the first 5 chars of the SHA1 of a value, that is to be validated. If it finds the exact SHA1 hash in the response it will add a validation error.
Usage
use R\Validator\Constraints as RAssert;
class MyEntity {
/**
* @RAssert\PwnedPasswords()
**/
var $password;
}