PHPackages                             whatbox/recaptcha-password-check - 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. whatbox/recaptcha-password-check

ActiveLibrary[Security](/categories/security)

whatbox/recaptcha-password-check
================================

PHP client for Google's reCAPTCHA password check API

1.0.0(5mo ago)1596↑25%Apache-2.0PHPPHP ^8.1

Since Dec 1Pushed 5mo agoCompare

[ Source](https://github.com/whatbox/recaptcha-password-check)[ Packagist](https://packagist.org/packages/whatbox/recaptcha-password-check)[ RSS](/packages/whatbox-recaptcha-password-check/feed)WikiDiscussions main Synced 1mo ago

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

reCAPTCHA Password Check – PHP
==============================

[](#recaptcha-password-check--php)

PHP port of [Google's Java API client](https://github.com/GoogleCloudPlatform/java-recaptcha-password-check-helpers) for the [reCAPTCHA Enterprise Password Check API](https://cloud.google.com/recaptcha-enterprise/docs/check-passwords).

A privacy-respecting solution to check username, password pairs against known breaches without leaking customer usernames or passwords to the breach database.

Similar to [Have I Been Pwned](https://haveibeenpwned.com/API/v3#SearchingPwnedPasswordsByRange), but a commercial API with fewer false positives by considering username and password together, instead of password alone.

Requirements
------------

[](#requirements)

- PHP 8.1+
- Composer

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

[](#installation)

```
composer install
```

Usage
-----

[](#usage)

- [Enable the "reCAPTCHA Enterprise API" in your Google Cloud project](https://console.cloud.google.com/apis/api/recaptchaenterprise.googleapis.com)
- ["Create credentials" &gt; "API key"](https://console.cloud.google.com/apis/credentials)

```
