stevie-c91 / Google-reCAPTCHA-v3-example

A simple contact form using reCAPTCHA v3 for validation with PHP

Home Page:https://stevencotterill.com/blog/adding-google-recaptcha-v3-to-a-php-form

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google reCAPTCHA v3 example

A simple contact form, using Google reCAPTCHA v3 with PHP for server side validation.

Add your Site key from the reCAPTCHA dashboard on lines 9 and 12 of 'public/index.php':

YOUR_RECAPTCHA_SITE_KEY

Add your Secret key from the reCAPTCHA dashboard on line 31 of 'public/index.php':

YOUR_RECAPTCHA_SECRET_KEY

This can be run locally with vagrant up.

You should run the following to install the required Vagrant plugins:

$ vagrant plugin install vagrant-hostmanager

Access the website locally at http://recaptcha.local

The Vagrant box being used is Scotchbox Pro

See blog post here

reCAPTCHA v3 form

About

A simple contact form using reCAPTCHA v3 for validation with PHP

https://stevencotterill.com/blog/adding-google-recaptcha-v3-to-a-php-form

License:MIT License


Languages

Language:PHP 100.0%