This library exposes the https://haveibeenpwned.com APIs.
- An intuitive client class
- APIs:
- BreachesForAccount
- AllBreaches
- SingleBreach
- AllDataClasses
- PHPUnit tests
- guzzlehttp/guzzle: ^6.1
require eyal-shalev/pwned
The following will return all the breaches under the adobe.com domain.
$client = new \EyalShalev\Pwned\Client('eyal-shalev/pwned:test', 2);
$breaches = $client->getAllBreaches('adobe.com');