PHPackages                             nilpo/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. nilpo/haveibeenpwned

ActiveLibrary

nilpo/haveibeenpwned
====================

A simple consumer for the HaveIBeenPwned API written in PHP.

001PHP

Since Jul 18Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

HaveIBeenPwned-For-PHP (HIBP)
=============================

[](#haveibeenpwned-for-php-hibp)

[![Build Status](https://camo.githubusercontent.com/4aacbdbc5a4cbe249f1e4b5a9d5173bc09818e08a5d239f5eb8bda484c884a25/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f4e696c706f2f68617665696265656e70776e65642e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/Nilpo/haveibeenpwned) [![Total Downloads](https://camo.githubusercontent.com/c83f02ea9af0dcffaf6e8828ab93ba584b764cf497219234c34778ec28b4d8dc/68747470733a2f2f706f7365722e707567782e6f72672f4e696c706f2f68617665696265656e70776e65642f646f776e6c6f6164732e706e67)](https://packagist.org/packages/nilpo/haveibeenpwned)

HIBP is a simple consumer for the HaveIBeenPwned API written for PHP 5.3+.

[haveibeenpwned](https://haveibeenpwned.com) is a simple and flexible API for checking an email address or user name against an aggregated list of dump files for major security breaches.

Installation
============

[](#installation)

Composer
--------

[](#composer)

HIBP is PSR-4 compliant and can be installed using [composer](http://getcomposer.org/). Simply add `nilpo/haveibeenpwned` to your composer.json file. *Composer is the sane alternative to PEAR. It is excellent for managing dependencies in larger projects*.

```
{
    "require": {
        "nilpo/haveibeenpwned": "*"
    }
}

```

Usage
=====

[](#usage)

See example.php for a simple usage example.

Changelog
=========

[](#changelog)

0.1.0
-----

[](#010)

- First public release

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/84c3530e06562617b2cb1e9764559ee65a3ce8bfa11e1eba3850870add0fb601?d=identicon)[Nilpo](/maintainers/Nilpo)

---

Top Contributors

[![Nilpo](https://avatars.githubusercontent.com/u/2223167?v=4)](https://github.com/Nilpo "Nilpo (18 commits)")

### Embed Badge

![Health badge](/badges/nilpo-haveibeenpwned/health.svg)

```
[![Health](https://phpackages.com/badges/nilpo-haveibeenpwned/health.svg)](https://phpackages.com/packages/nilpo-haveibeenpwned)
```

PHPackages © 2026

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