This is a simple demo application written with PHP that demonstrates how to use the Cloudflare Turnstile to protect your application from abuse.
- Docker
- Clone this repository
git clone git@github.com:NotMixu/cloudflare-turnstile-demo-php.git- Copy the contents of the
config.example.phpfile to a new file calledconfig.phpand fill in the values
cp config.example.php config.php- Run the application with docker compose
docker compose up- Open your browser and navigate to http://localhost:8000