PHPackages                             davidvandertuijn/recaptcha - 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. davidvandertuijn/recaptcha

ActiveLibrary[Security](/categories/security)

davidvandertuijn/recaptcha
==========================

reCAPTCHA

3.0(4y ago)02.6kMITPHPPHP &gt;=7.1.0

Since Jun 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/davidvandertuijn/recaptcha)[ Packagist](https://packagist.org/packages/davidvandertuijn/recaptcha)[ RSS](/packages/davidvandertuijn-recaptcha/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)DependenciesVersions (4)Used By (0)

reCAPTCHA
=========

[](#recaptcha)

[![Total Downloads](https://camo.githubusercontent.com/f3888d698b48191b81f268ca37e210daac86360c495c58cb0221f3bfbc5cdf65/68747470733a2f2f706f7365722e707567782e6f72672f646176696476616e6465727475696a6e2f7265636170746368612f642f746f74616c2e737667)](https://packagist.org/packages/davidvandertuijn/recaptcha)[![Latest Stable Version](https://camo.githubusercontent.com/807e65a3cb567222adf3618955815eeb9b5dde03c9f9ae3b34aa64dea9079c7a/68747470733a2f2f706f7365722e707567782e6f72672f646176696476616e6465727475696a6e2f7265636170746368612f762f737461626c652e737667)](https://packagist.org/packages/davidvandertuijn/recaptcha)[![License](https://camo.githubusercontent.com/416c8da07efc271d19b6414b9dc243418a054f328a0536711efe0f1491f03858/68747470733a2f2f706f7365722e707567782e6f72672f646176696476616e6465727475696a6e2f7265636170746368612f6c6963656e73652e737667)](https://packagist.org/packages/davidvandertuijn/recaptcha)

[![reCAPTCHA](https://camo.githubusercontent.com/f4d4b2cda45a6fc18cfbc71a79d9f7b6a8dc00e889bc648cd0521a27f9b54dca/68747470733a2f2f63646e2e646176696476616e6465727475696a6e2e6e6c2f6769746875622f7265636170746368612e706e67)](https://camo.githubusercontent.com/f4d4b2cda45a6fc18cfbc71a79d9f7b6a8dc00e889bc648cd0521a27f9b54dca/68747470733a2f2f63646e2e646176696476616e6465727475696a6e2e6e6c2f6769746875622f7265636170746368612e706e67)

reCAPTCHA is an advanced security tool designed to protect websites from automated bots and malicious activities. By implementing reCAPTCHA, website owners can ensure that their online platforms remain secure while providing a user-friendly experience for legitimate users.

[!["Buy Me A Coffee"](https://camo.githubusercontent.com/9f44ce2dc3b3eecdd02598900866ffc518801df1932849703dae1e5ce5031070/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67)](https://www.buymeacoffee.com/davidvandertuijn)

Install
-------

[](#install)

```
composer require davidvandertuijn/recaptcha

```

Usage
-----

[](#usage)

```
use Davidvandertuijn\Recaptcha;
```

**Register your site**

[reCAPTCHA: Easy on Humans, Hard on Bots](https://www.google.com/recaptcha/admin#list)

**Add script -tag**

``

**Add div -tag within `` ... ``**

``

**Verify**

```
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    $recaptcha = new Recaptcha;

    $recaptcha->setSecret('your-secret-key-here');
    $recaptcha->setResponse($_POST['g-recaptcha-response']);
    $recaptcha->setRemoteIp($_SERVER['REMOTE_ADDR']);

    if (!$recaptcha->verify()) {
        // false
    } else {
        // true
    }
}
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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 ~867 days

Total

3

Last Release

1527d ago

Major Versions

1.0 → 2.02019-05-26

2.0 → 3.02022-03-07

PHP version history (3 changes)1.0PHP &gt;=5.3.0

2.0PHP &gt;=7.0.0

3.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d8904bedce7fb2ec131c0d18c13aeaa82b00af2fd03ebe099886ac462b1d29e?d=identicon)[davidvandertuijn](/maintainers/davidvandertuijn)

---

Top Contributors

[![davidvandertuijn](https://avatars.githubusercontent.com/u/11010507?v=4)](https://github.com/davidvandertuijn "davidvandertuijn (13 commits)")

### Embed Badge

![Health badge](/badges/davidvandertuijn-recaptcha/health.svg)

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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