Skip to content

Laravel Cloudflare Turnstile

Active
ryangjchandler/laravel-cloudflare-turnstile

A simple Laravel package for integrating Cloudflare Turnstile: Blade components for the widget and a validation rule for the token.

View on GitHub
Stars
464
Forks
32
Watchers
464
Open issues
3

Overview

This package integrates Laravel with Cloudflare’s Turnstile product, the privacy-friendly CAPTCHA alternative.

Installation

composer require ryangjchandler/laravel-cloudflare-turnstile

Add a turnstile entry with key and secret to config/services.php, then create your Turnstile keys in Cloudflare and set TURNSTILE_SITE_KEY and TURNSTILE_SECRET_KEY in .env.

Usage

Add <x-turnstile.scripts /> to your layout, put <x-turnstile /> inside a form to render the widget, and validate the submitted token with the package’s Turnstile rule.

Similar open-source projects, ranked by shared categories and tags.

All Security projects →