Skip to content

Latest commit

 

History

History
26 lines (13 loc) · 948 Bytes

README.md

File metadata and controls

26 lines (13 loc) · 948 Bytes

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