Skip to content

Symfony service that can test if a user/password combination exists in the haveibeenpwned database.

Notifications You must be signed in to change notification settings

Eyal-Shalev/pwned

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

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

About

Symfony service that can test if a user/password combination exists in the haveibeenpwned database.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages