A client that exposes the https://haveibeenpwned.com APIs.

1.1 2016-06-03 16:26 UTC

This package is auto-updated.

Last update: 2024-12-19 23:34:45 UTC


README

This library exposes the https://haveibeenpwned.com APIs.

Features

  • An intuitive client class
  • APIs:
    • BreachesForAccount
    • AllBreaches
    • SingleBreach
    • AllDataClasses
  • PHPUnit tests

Dependencies

  • guzzlehttp/guzzle: ^6.1

Installation

require eyal-shalev/pwned

Usage example

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');