PHPackages                             ridvanbaluyos/haveibeenpwned - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. ridvanbaluyos/haveibeenpwned

ActiveLibrary[API Development](/categories/api)

ridvanbaluyos/haveibeenpwned
============================

A PHP Package built for the haveibeenpwned.com API.

v0.1(8y ago)15641MITPHPPHP &gt;=7.0

Since Sep 4Pushed 8y ago3 watchersCompare

[ Source](https://github.com/ridvanbaluyos/haveibeenpwned)[ Packagist](https://packagist.org/packages/ridvanbaluyos/haveibeenpwned)[ RSS](/packages/ridvanbaluyos-haveibeenpwned/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

haveibeenpwned
==============

[](#haveibeenpwned)

A PHP Library built for [';--have i been pwned?](https://haveibeenpwned.com)

[![Actively Maintained](https://camo.githubusercontent.com/7904a78e053b215ef92caa8957fba8956752edc6d65763230398179b7bcbab5b/68747470733a2f2f6d61696e7461696e65642e746563682f62616467652e737667)](https://maintained.tech/)[![Latest Stable Version](https://camo.githubusercontent.com/72a56b2b2fdec7e54fb7f2f6234b9fa5268fc7581aac185be724310ada40b419/68747470733a2f2f706f7365722e707567782e6f72672f72696476616e62616c75796f732f68617665696265656e70776e65642f762f737461626c65)](https://packagist.org/packages/ridvanbaluyos/haveibeenpwned) [![Total Downloads](https://camo.githubusercontent.com/2afa21f0e051bc0ac2459f4ff764b7abe8ce6e99bc0d9c2113b767ce382fadd0/68747470733a2f2f706f7365722e707567782e6f72672f72696476616e62616c75796f732f68617665696265656e70776e65642f646f776e6c6f616473)](https://packagist.org/packages/ridvanbaluyos/haveibeenpwned) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/0fb6cff8a35d10361aabeaafd08ae4449396f4ccdf2a45eea9e7ab4aecc9b50f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f72696476616e62616c75796f732f68617665696265656e70776e65642f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ridvanbaluyos/haveibeenpwned/?branch=master) [![Build Status](https://camo.githubusercontent.com/1fc865d0922d9e29cc4c9555bbcfcaf316f3252bb128d4e7ae3208ad77cb3309/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f72696476616e62616c75796f732f68617665696265656e70776e65642f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ridvanbaluyos/haveibeenpwned/build-status/master) [![Codacy Badge](https://camo.githubusercontent.com/a35a7a482cb759a2f47e15cc67f68dca5b5e6bfd73d08fd63b371150ffbde6cd/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3466653937303635306361613465306661643665663635316666323839613535)](https://www.codacy.com/app/ridvanbaluyos/haveibeenpwned?utm_source=github.com&utm_medium=referral&utm_content=ridvanbaluyos/haveibeenpwned&utm_campaign=Badge_Grade) [![License](https://camo.githubusercontent.com/c44a4553f74fe01610f6df36f2fca9e339e30a9fa29db2bb7cae5046423dd091/68747470733a2f2f706f7365722e707567782e6f72672f72696476616e62616c75796f732f68617665696265656e70776e65642f6c6963656e7365)](https://packagist.org/packages/ridvanbaluyos/haveibeenpwned)

Table of contents
-----------------

[](#table-of-contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
    - [Breached Account](#breached-account)
    - [Breached Sites](#breached-sites)
    - [Data Classes](#data-classes)
    - [Pastes Account](#pastes-account)
    - [Pwned Passwords](#chaining-options)
- [References](#references)

### Requirements

[](#requirements)

1. This uses only [API v2](https://haveibeenpwned.com/API/v2).
2. PHP 7 or higher.

### Installation

[](#installation)

Open your `composer.json` file and add the following to the `require` key:

```
"ridvanbaluyos/haveibeenpwned": "v0.1"

```

---

After adding the key, run composer update from the command line to install the package

```
composer install
```

or

```
composer update
```

### Usage

[](#usage)

```
