tombroucke / sage-html-forms-captcha
Service Provider that adds recaptcha support to the HTML forms plugin
Installs: 212
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- php: ^8.0
- google/recaptcha: ^1.3
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='########################################'