Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stevie-c91/google-recaptcha-v3-example

A simple contact form using reCAPTCHA v3 for validation with PHP
https://github.com/stevie-c91/google-recaptcha-v3-example

bulma-css css html-form javascript php recaptcha-v3

Last synced: about 22 hours ago
JSON representation

A simple contact form using reCAPTCHA v3 for validation with PHP

Awesome Lists containing this project

README

        

## Google reCAPTCHA v3 example

A simple contact form, using [Google reCAPTCHA v3](https://developers.google.com/recaptcha/docs/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](https://box.scotch.io/pro)

See blog post [here](https://stevencotterill.co.uk/blog/adding-google-recaptcha-v3-to-a-php-form)

![reCAPTCHA v3 form](https://stevencotterill.co.uk/img/github-recaptcha-form.jpg)