griffolion / pwned
A small library for checking the status of a password against the HaveIBeenPwned database.
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/griffolion/pwned
Requires
- php: >=7.1
- ext-curl: *
Requires (Dev)
- mockery/mockery: ^1.5
- phpunit/phpunit: ^8
This package is auto-updated.
Last update: 2025-10-11 05:05:36 UTC
README
HaveIBeenPwnedRangeChecker
A small, simple library for checking a password against the HaveIBeenPwned password checker API.
Passwords appearing in the search results of the API have appeared in breached databases, and thus any accounts using such a password are at greater risk of being breahced.
Requirements
- PHP 7.1 or above
- Curl
Installation
composer require griffolion/pwned
Basic Usage
use Pwned\Range; ... $pwnedCount = (new Range())->check("password"); if ($pwnedCount > 0) { echo "Your password is at risk!"; }