Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 1 month ago
JSON representation
A simple contact form using reCAPTCHA v3 for validation with PHP
- Host: GitHub
- URL: https://github.com/stevie-c91/google-recaptcha-v3-example
- Owner: stevie-c91
- License: mit
- Created: 2018-11-03T14:24:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-12T23:10:58.000Z (about 1 year ago)
- Last Synced: 2024-10-14T00:42:02.967Z (about 1 month ago)
- Topics: bulma-css, css, html-form, javascript, php, recaptcha-v3
- Language: PHP
- Homepage: https://stevencotterill.com/blog/adding-google-recaptcha-v3-to-a-php-form
- Size: 4.88 KB
- Stars: 37
- Watchers: 3
- Forks: 22
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)