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

ActiveLibrary

pollen-solutions/recaptcha
==========================

Pollen Solutions - Recaptcha Component - Recaptcha V2/V3 integration layer for PHP forms

v1.0.0(4y ago)04MITPHPPHP ^7.4 || ^8.0

Since Aug 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pollen-solutions/recaptcha)[ Packagist](https://packagist.org/packages/pollen-solutions/recaptcha)[ Docs](https://www.presstify.com/pollen-solutions/recaptcha/)[ RSS](/packages/pollen-solutions-recaptcha/feed)WikiDiscussions master Synced today

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

Recaptcha Component
===================

[](#recaptcha-component)

[![Latest Stable Version](https://camo.githubusercontent.com/67e9182371b9ae7cce50626a29de4d3f0ea36dfe4ca33325346fbc1967cd3592/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706f6c6c656e2d736f6c7574696f6e732f7265636170746368612e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/pollen-solutions/recaptcha)[![MIT Licensed](https://camo.githubusercontent.com/daa52099573be5a50c320c4387496400f2f722e49f86a42db8d5778130d3582d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e3f7374796c653d666f722d7468652d6261646765)](LICENSE.md)[![PHP Supported Versions](https://camo.githubusercontent.com/d9d71d0b69072c51e1ff7adfdb6270f896f75787500ce6437120e23727c081d1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d2533453d372e342d3838393242463f7374796c653d666f722d7468652d6261646765266c6f676f3d706870)](https://www.php.net/supported-versions.php)

Pollen Solutions **Recaptcha** Component provides a recaptcha V2/V3 integration layer for PHP forms.

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

[](#installation)

```
composer require pollen-solutions/recaptcha
```

Basic Usage with Pollen form component
--------------------------------------

[](#basic-usage-with-pollen-form-component)

1. Install Pollen form component with composer.

```
composer require pollen-solutions/form
```

2. Create a form, display it and send a submission.

```
use Laminas\HttpHandlerRunner\Emitter\SapiEmitter;
use Pollen\Form\FormManager;
use Pollen\Recaptcha\Recaptcha;
use Pollen\Recaptcha\Form\RecaptchaFormField;

$recaptcha = new Recaptcha();
$recaptcha->config(
    [
        /**
         * Recaptcha version or type (required).
         * @var int 2|3
         */
        'version'   => 3,
        /**
         * Recaptcha Site key (required).
         * @var string|null $sitekey
         */
        'sitekey'   => '===== sitekey =====',
        /**
         * Recaptcha secret key (required).
         * @var string|null $secretkey
         */
        'secretkey' => '===== secretkey =====',
        /**
         * Locale in ISO 15897 format. en_US if null.
         * @var string|null $locale
         */
        'locale'    => null,
    ]
);

$forms = new FormManager();

try {
    $forms->registerFormFieldDriver('recaptcha', new RecaptchaFormField($recaptcha));
} catch(Throwable $e) {
    // If the recaptcha form field is already registered.
    unset($e);
}

$form = $forms->buildForm(
    [
        'fields' => [
            'email'   => [
                'type' => 'text',
            ],
            'captcha' => [
                'type' => 'recaptcha',
            ],
        ],
    ]
)->get();

if ($response = $form->handle()->proceed()) {
    (new SapiEmitter())->emit($response->psr());
    exit;
}

echo jsScripts/* ]]> */

HTML;
```

Asset autoloader
----------------

[](#asset-autoloader)

By default an asset autoloader places the JS in the HTML footer of all pages in the web application. You might want to call these scripts manually.

In Wordpress application
------------------------

[](#in-wordpress-application)

```
use Pollen\Recaptcha\RecaptchaInstance;

/** @var RecaptchaInstance $recaptcha */
$recaptcha = $this->config(['asset.autoloader' => true]);

add_action('wp_print_footer_scripts', function () use ($recaptcha) {
    echo "" .
    "/* " . $recaptcha->getJsScripts() . "/* ]]> */" .
    "";
});
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1724d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1d9488545d6b446f8df86ec373a070e7fed1166fc47e1324d963e46d3d838d3?d=identicon)[presstify](/maintainers/presstify)

---

Top Contributors

[![jordy-manner](https://avatars.githubusercontent.com/u/733356?v=4)](https://github.com/jordy-manner "jordy-manner (1 commits)")

---

Tags

recaptchacomponentv3v2pollen-solutions

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[buzz/laravel-google-captcha

Google captcha for Laravel

2071.1M2](/packages/buzz-laravel-google-captcha)

PHPackages © 2026

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