/cloudflare-turnstile-demo-php

Simple demo application written with PHP that demonstrates how to use the Cloudflare Turnstile to protect your application from abuse.

Primary LanguagePHPMIT LicenseMIT

Cloudflare Turnstile Demo Application

This is a simple demo application written with PHP that demonstrates how to use the Cloudflare Turnstile to protect your application from abuse.

Requirements

  • Docker

Running locally

  1. Clone this repository
git clone git@github.com:NotMixu/cloudflare-turnstile-demo-php.git
  1. Copy the contents of the config.example.php file to a new file called config.php and fill in the values
cp config.example.php config.php
  1. Run the application with docker compose
docker compose up
  1. Open your browser and navigate to http://localhost:8000