xsist10/haveibeenpwned

Client for the "Have I Been Pwned" API

Installs: 12

Dependents: 0

Stars: 1

Watchers: 1

Forks: 2

Language: PHP

1.0.2 2014-08-11 16:40 UTC

README

Install

{
    "require": {
        "xsist10/haveibeenpwned": "~1.0"
    }
}

Usage

Check if you've been pwned

use xsist10\HaveIBeenPwned\HaveIBeenPwned;

$manager = new HaveIBeenPwned();
$manager->checkAccount("your_email_address");

List all breaches that have are on record

use xsist10\HaveIBeenPwned\HaveIBeenPwned;

$manager = new HaveIBeenPwned();
$manager->getBreaches();

$manager->getBreach('specific_breach_by_name');

List the types of data that are covered when describing a leak

use xsist10\HaveIBeenPwned\HaveIBeenPwned;

$manager = new HaveIBeenPwned();
$manager->getDataClasses();

Credits

License

The MIT License (MIT). Please see License File for more information.