PHPackages                             billmn/craft-turnstile - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. billmn/craft-turnstile

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

billmn/craft-turnstile
======================

Cloudflare Turnstile integration for Craft CMS.

2.0.1(1y ago)37401mitPHPPHP ^8.2

Since Jan 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/billmn/craft-turnstile)[ Packagist](https://packagist.org/packages/billmn/craft-turnstile)[ RSS](/packages/billmn-craft-turnstile/feed)WikiDiscussions development-v2 Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (13)Used By (0)

[![](./src/icon.svg)](./src/icon.svg)

Cloudflare Turnstile
====================

[](#cloudflare-turnstile)

Easily integrate Turnstile to validate your forms.

Turnstile is Cloudflare's **free**, **privacy-first**, smart **CAPTCHA replacement**. It automatically chooses from a rotating suite of non-intrusive browser challenges based on telemetry and client behavior exhibited during a session.

The plugin support [Sprig](https://github.com/putyourlightson/craft-sprig) requests out of the box.

If you want to know more about Turnstile, read the announcement [blog post](https://blog.cloudflare.com/turnstile-private-captcha-alternative) or the [official documentation](https://developers.cloudflare.com/turnstile).

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 5.0.0 or later.

Installation
------------

[](#installation)

You can install this plugin from the Plugin Store or with Composer.

#### From the Plugin Store

[](#from-the-plugin-store)

Go to the Plugin Store in your project’s Control Panel and search for “Turnstile”. Then press “Install”.

#### With Composer

[](#with-composer)

Open your terminal and run the following commands:

```
# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require billmn/craft-turnstile

# tell Craft to install the plugin
./craft plugin/install turnstile
```

Turnstile's keys
----------------

[](#turnstiles-keys)

Insert [site and secret keys](https://developers.cloudflare.com/turnstile/get-started/#get-a-sitekey-and-secret-key) in the plugin settings page, `.env` variables are supported.

### Config file (optional)

[](#config-file-optional)

You can create a `turnstile.php` file in the config folder of your project to override the settings specified in control panel:

```
