PHPackages                             aryehraber/statamic-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. aryehraber/statamic-recaptcha

Abandoned → [aryehraber/statamic-captcha](/?search=aryehraber%2Fstatamic-captcha)Library[Authentication &amp; Authorization](/categories/authentication)

aryehraber/statamic-recaptcha
=============================

Protect your Statamic 3 forms using Google's reCAPTCHA service

v2.8.4(5y ago)213524[1 issues](https://github.com/aryehraber/statamic-recaptcha/issues)MITPHP

Since Apr 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/aryehraber/statamic-recaptcha)[ Packagist](https://packagist.org/packages/aryehraber/statamic-recaptcha)[ Docs](https://github.com/aryehraber/statamic-recaptcha)[ GitHub Sponsors](https://github.com/aryehraber)[ RSS](/packages/aryehraber-statamic-recaptcha/feed)WikiDiscussions master Synced today

READMEChangelog (10)DependenciesVersions (11)Used By (0)

**For Statamic V3, please use the new Captcha addon: **

---

Recaptcha (Statamic V2)
=======================

[](#recaptcha-statamic-v2)

**Protect your Statamic forms using reCAPTCHA or hCaptcha.**

This addon allows you to protect your Statamic forms from spam and abuse using [reCAPTCHA](https://www.google.com/recaptcha/intro/index.html) or [hCaptcha](https://hcaptcha.com/?r=eaeeea7cd23c) service.

After the initial setup, all you need to do is add the `{{ recaptcha }}` tag inside your forms, easy peasy!

[![reCAPTCHA](https://camo.githubusercontent.com/f237cecf9327da1230978c1c20db31652c77bcc5f7f28c9967225d07602b2a8a/68747470733a2f2f7777772e676f6f676c652e636f6d2f7265636170746368612f696e74726f2f696d616765732f6865726f2d7265636170746368612d64656d6f2e676966)](https://camo.githubusercontent.com/f237cecf9327da1230978c1c20db31652c77bcc5f7f28c9967225d07602b2a8a/68747470733a2f2f7777772e676f6f676c652e636f6d2f7265636170746368612f696e74726f2f696d616765732f6865726f2d7265636170746368612d64656d6f2e676966)

Setup
-----

[](#setup)

1. Firstly, copy the `Recaptcha` folder into `site/addons/`.
2. Next, you'll have to add reCAPTCHA's API script to your site's `` using `{{ recaptcha:head }}`. You may also want to look into Statamic's [Yield](https://docs.statamic.com/tags/yield) &amp; [Section](https://docs.statamic.com/tags/section) tags to only render the script when needed.
3. Then configure which forms will be using Recaptcha via the settings in the CP `(Configure > Addons > Recaptcha)`. Here you can also customise the error message shown when validation fails, as well as various other settings.
4. Finally, head over to , or  to create your `SITE_KEY` &amp; `SECRET` and add them to Recaptcha's settings. Alternatively, add them to the site's `.env` file using `RECAPTCHA_SITE_KEY` &amp; `RECAPTCHA_SECRET`. Please note: Recaptcha's Addon settings will take precedence over the `.env` settings.

Usage
-----

[](#usage)

```

    My Awesome Site

    {{ recaptcha:head }}

    {{ form:create in="my-awesome-form" }}

        {{ recaptcha }}

    {{ /form:create }}

```

This will automatically render the reCAPTCHA element on the page (if a valid `SITE_KEY` was found). After the form is submitted, the Addon will temporarily halt the form from saving while the submission is verified. If all is good, the form will save as normal, otherwise an error will be added to the `{{ errors }}` array (together with any other errors, if they exist) which you can handle the same way as you would normally.

hCaptcha
--------

[](#hcaptcha)

As of v2.7.0, this Addon also supports [hCaptcha](https://hcaptcha.com/?r=eaeeea7cd23c)! Simply switch the Captcha Service setting to `hCaptcha` inside of `Configure > Addons > Recaptcha` and update the API keys to your hCaptcha keys.

User Registration
-----------------

[](#user-registration)

As of v2.8.0, Recaptcha can verify user registration submissions from Statamic's `{{ user:register_form }}` form. Activate the feature inside `Configure > Addons > Recaptcha` and follow the same usage instructions as above.

Invisible Recaptcha
-------------------

[](#invisible-recaptcha)

As of v2.0, Recaptcha also supports the [Invisible reCAPTCHA](https://developers.google.com/recaptcha/docs/invisible):

1. Simply turn on the `Invisible` toggle in Recaptcha's settings.
2. Turn on `Hide Badge` to hide Recaptcha badge
3. Add required Google Terms and Privacy Policy using `{{ recaptcha:disclaimer }}`

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 96.8% 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 ~24 days

Recently: every ~42 days

Total

8

Last Release

2097d ago

### Community

Maintainers

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

---

Top Contributors

[![aryehraber](https://avatars.githubusercontent.com/u/5065331?v=4)](https://github.com/aryehraber "aryehraber (61 commits)")[![delz-dev](https://avatars.githubusercontent.com/u/54885840?v=4)](https://github.com/delz-dev "delz-dev (1 commits)")[![mikemartin](https://avatars.githubusercontent.com/u/414211?v=4)](https://github.com/mikemartin "mikemartin (1 commits)")

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

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