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

ActiveCraft-plugin[Authentication &amp; Authorization](/categories/authentication)

cdgrph/craft-recaptcha
======================

reCAPTCHA v3 integration for Craft CMS with Contact Form plugin support

v1.2.1(4mo ago)031[1 issues](https://github.com/cdgrph/craft-recaptcha/issues)MITPHPPHP ^8.2

Since Dec 12Pushed 4mo agoCompare

[ Source](https://github.com/cdgrph/craft-recaptcha)[ Packagist](https://packagist.org/packages/cdgrph/craft-recaptcha)[ RSS](/packages/cdgrph-craft-recaptcha/feed)WikiDiscussions main Synced today

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

reCAPTCHA for Craft CMS
=======================

[](#recaptcha-for-craft-cms)

Google reCAPTCHA v3 plugin for Craft CMS 5.x with automatic Contact Form integration.

Features
--------

[](#features)

- **reCAPTCHA v3 Integration** - Invisible spam protection without user interaction
- **Contact Form Support** - Automatic validation with [Contact Form](https://plugins.craftcms.com/contact-form) plugin
- **Configurable Threshold** - Adjust score sensitivity (0.0-1.0)
- **Environment Variables** - Production-ready configuration via `.env`
- **Twig Helpers** - Easy template integration with built-in variables

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

[](#requirements)

- Craft CMS 5.0 or later
- PHP 8.2 or later

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

[](#installation)

```
composer require cdgrph/craft-recaptcha
```

Then install the plugin from the Control Panel (**Settings → Plugins**) or via CLI:

```
php craft plugin/install recaptcha
```

Configuration
-------------

[](#configuration)

### Control Panel

[](#control-panel)

Navigate to **Settings → reCAPTCHA** to configure:

SettingDescriptionEnable reCAPTCHAToggle verification on/offSite KeyYour reCAPTCHA v3 site keySecret KeyYour reCAPTCHA v3 secret keyScore ThresholdMinimum score required (default: 0.5)### Environment Variables (Recommended)

[](#environment-variables-recommended)

Create `config/recaptcha.php`:

```
