一个暴露 https://haveibeenpwned.com API 的客户端。

1.1 2016-06-03 16:26 UTC

This package is auto-updated.

Last update: 2024-09-19 22:45:29 UTC


README

此库暴露了https://haveibeenpwned.com API。

功能

  • 直观的客户端类
  • APIs
    • BreachesForAccount
    • AllBreaches
    • SingleBreach
    • AllDataClasses
  • PHPUnit 测试

依赖项

  • guzzlehttp/guzzle: ^6.1

安装

require eyal-shalev/pwned

使用示例

以下代码将返回 adobe.com 域下的所有违规行为。

$client = new \EyalShalev\Pwned\Client('eyal-shalev/pwned:test', 2);
$breaches = $client->getAllBreaches('adobe.com');