/Google-reCAPTCHA-v3-example

A simple contact form using reCAPTCHA v3 for validation with PHP

Primary LanguagePHPMIT LicenseMIT

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