PHPackages                             mike-jg/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. [Security](/categories/security)
4. /
5. mike-jg/pwned-api

ActiveLibrary[Security](/categories/security)

mike-jg/pwned-api
=================

PwnedApi is a PHP library to work with the API at https://haveibeenpwned.com/API/v2/

1.0.1(8y ago)05PHPPHP ^7.1

Since Feb 27Pushed 8y agoCompare

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

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

Pwned API
=========

[](#pwned-api)

This is meant as a simple way to interface with the service at

[![Build Status](https://camo.githubusercontent.com/7a9bbfea2cc0089d713a0a8c6675c346777a8818526061716035381cc5fc53b5/68747470733a2f2f7472617669732d63692e6f72672f6d696b652d6a672f70776e65642d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mike-jg/pwned-api)

Installation
------------

[](#installation)

```
$ composer require mike-jg/pwned-api

```

Basic Usage
-----------

[](#basic-usage)

The preferred way to interact with the API is to use the `Client::searchByRange`method, as this protects the value of the source password being searched for. See

```
