PHPackages                             pxgamer/pwned-api - 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. pxgamer/pwned-api

ActiveLibrary[API Development](/categories/api)

pxgamer/pwned-api
=================

An API wrapper for the HaveIBeenPwned API.

v1.1.2(8y ago)012MITPHPPHP ^7.1

Since Jun 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/owenvoke/pwned-api)[ Packagist](https://packagist.org/packages/pxgamer/pwned-api)[ RSS](/packages/pxgamer-pwned-api/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (9)Used By (0)

pwned-api
=========

[](#pwned-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f08ac07dd16ee69f870c2423bbf5da2ddd94992ea3457d0b07871b7d02983451/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f707867616d65722f70776e65642d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pxgamer/pwned-api)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/779d8c7dca80980a3faf9f394b19c4c44b42c72917000a5b6cecc92e2a65f500/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f707867616d65722f70776e65642d6170692f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/pxgamer/pwned-api)[![Style CI](https://camo.githubusercontent.com/2170c14aed085202c91b193ad9e7d09a0e447541b6fa6ea3d8de497a927045b4/68747470733a2f2f7374796c6563692e696f2f7265706f732f39343837353032332f736869656c64)](https://styleci.io/repos/94875023)[![Code Coverage](https://camo.githubusercontent.com/b1c9c46a9575ff87c4ab95fc194564a978b171fe01bef5f540d0b6ba747417d3/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f707867616d65722f70776e65642d6170692e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/pxgamer/pwned-api)[![Total Downloads](https://camo.githubusercontent.com/c61b2c92598cb3deca884177f68f71e92ed08fe47313c175b2054a0e48b09ceb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f707867616d65722f70776e65642d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pxgamer/pwned-api)

An API wrapper for the [Have I Been Pwned](https://haveibeenpwned.com/) API.

Structure
---------

[](#structure)

```
src/
tests/
vendor/

```

Install
-------

[](#install)

Via Composer

```
$ composer require pxgamer/pwned-api
```

Usage
-----

[](#usage)

This is currently up to date with [version 2](https://haveibeenpwned.com/API/v2) of the API and allows use of the following:

- Breaches
    - Getting all breaches for an account [1](https://haveibeenpwned.com/api/v2/#BreachesForAccount)
    - Getting all breached sites in the system [2](https://haveibeenpwned.com/api/v2/#AllBreaches)
    - Getting a single breached site [3](https://haveibeenpwned.com/api/v2/#SingleBreach)
    - Getting an array of data classes [4](https://haveibeenpwned.com/api/v2/#AllDataClasses)
- Pastes
    - Getting all pastes for an account [5](https://haveibeenpwned.com/api/v2/#PastesForAccount)

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [pxgamer](https://github.com/pxgamer)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~28 days

Recently: every ~42 days

Total

7

Last Release

3079d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1899334?v=4)[Owen Voke](/maintainers/owenvoke)[@owenvoke](https://github.com/owenvoke)

---

Top Contributors

[![owenvoke](https://avatars.githubusercontent.com/u/1899334?v=4)](https://github.com/owenvoke "owenvoke (39 commits)")

---

Tags

apibreacheshaveibeenpwnedhibpphpwrapper

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/pxgamer-pwned-api/health.svg)

```
[![Health](https://phpackages.com/badges/pxgamer-pwned-api/health.svg)](https://phpackages.com/packages/pxgamer-pwned-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
