/reCAPTCHA-v3-PHP-demo

A demonstration codebase for showing how to integrate reCAPTCHA v3 into a PHP codebase.

Primary LanguagePHPMIT LicenseMIT

reCAPTCHA v3 PHP Example

This is a demo codebase for getting reCAPTCHA v3 (enterprise) working in PHP.

USAGE

Install the required packages by running:

composer install

Create the settings file by copying the example and filling it in:

cp settings.php.example settings.php

Run the codebase locally:

sudo php -S localhost:80

Then navigate to localhost in your browser to try out the demo. If you want to test a specific domain, then update your /etc/hosts file to point that domain to 127.0.0.1.