tombroucke/sage-html-forms-captcha

Service Provider that adds recaptcha support to the HTML forms plugin

1.4.0 2024-02-05 13:17 UTC

This package is auto-updated.

Last update: 2024-02-05 13:17:59 UTC


README

Easily add captcha's to HTML Forms.

Installation

You can install this package with Composer:

composer require tombroucke/sage-html-forms-captcha

You can publish the config file with:

$ wp acorn vendor:publish --provider="Otomaties\SageHtmlFormsCaptcha\Providers\SageHtmlFormsCaptchaServiceProvider"

Usage

hCaptcha

Define your site key and site secret in your .env file:

HCAPTCHA_SITE_KEY='########-####-####-####-############'
HCAPTCHA_SECRET_KEY='#x########################################'

reCAPTCHA (v2)

Change 'captchaType' to 'recaptcha' in your published config file.

Define your site key and site secret in your .env file:

RECAPTCHA_SITE_KEY='########################################'
RECAPTCHA_SECRET_KEY='########################################'