PHPackages                             stoffelio/statamic-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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. stoffelio/statamic-turnstile

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

stoffelio/statamic-turnstile
============================

Add Cloudflare Turnstile verification to your Statamic forms

v1.3.0(3mo ago)817.6k↓20.1%6[5 issues](https://github.com/stoffelio/statamic-turnstile/issues)PHP

Since Sep 29Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/stoffelio/statamic-turnstile)[ Packagist](https://packagist.org/packages/stoffelio/statamic-turnstile)[ RSS](/packages/stoffelio-statamic-turnstile/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (8)Used By (0)

Statamic Turnstile
==================

[](#statamic-turnstile)

> Add Cloudflare Turnstile verification to your Statamic forms

Features
--------

[](#features)

This addon lets you secure your Statamic forms with Cloudflare Turnstile, an alternative to services like Google reCaptcha.

Simply add the script to your site via our custom tag and then add a Turnstile field to any form you want to protect. Everything else is done for you.

You can also protect user registration forms by setting the `TURNSTILE_PROTECT_REGISTRATION` environment variable to `true`. If you're using this feature make sure to add `{{ turnstile:field }}` into the registration form page.

How to Install
--------------

[](#how-to-install)

Before setting up this addon you need to register with Cloudflare Turnstile and add your site. You will receive two keys that need to be added to your project's .env file.

```
TURNSTILE_SITE_KEY=0x4AAAAAAAAlfghdghfh387
TURNSTILE_SECRET_KEY=0x4AAAAAAAAlJftzhtjtrrjtznU-eVC4iU
```

Next install the addon via the control panel or simply run `composer require stoffelio/statamic-turnstile`.

To load the javascript needed to display the Turnstile widget on the front end, add the `{{ turnstile:script }}` tag to your site's head.

Lastly edit the blueprint for any form you want to secure and add a field of the Turnstile fieldtype.

Turnstile Field Output
----------------------

[](#turnstile-field-output)

This addon assumes that you use Statamic's `{{ field }}` tag to automatically pull in the view associated with each form field.

If you want to change the output, you can publish the view to the views/vendor folder using the `php artisan vendor:publish --tag=turnstile-view` command.

If you're creating your own form output and not using the field views, you can use the `{{ turnstile:field }}` tag to output your field manually.

Translate validation error message
----------------------------------

[](#translate-validation-error-message)

If you want to change the translation of the validation error message you can publish the default language file using the `php artisan vendor:publish --tag=turnstile-lang` command.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance67

Regular maintenance activity

Popularity36

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~243 days

Recently: every ~304 days

Total

6

Last Release

108d ago

Major Versions

v0.1 → v1.02022-09-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/d62a86a4f061b4cf39702af6e9f2396446222a2bfcc81ea08aab5391036d906c?d=identicon)[stoffelio](/maintainers/stoffelio)

---

Top Contributors

[![stoffelio](https://avatars.githubusercontent.com/u/65236157?v=4)](https://github.com/stoffelio "stoffelio (15 commits)")[![Kaishiyoku](https://avatars.githubusercontent.com/u/5131112?v=4)](https://github.com/Kaishiyoku "Kaishiyoku (4 commits)")[![tognee](https://avatars.githubusercontent.com/u/18465347?v=4)](https://github.com/tognee "tognee (4 commits)")[![admench](https://avatars.githubusercontent.com/u/672916?v=4)](https://github.com/admench "admench (2 commits)")[![joshuablum](https://avatars.githubusercontent.com/u/3824203?v=4)](https://github.com/joshuablum "joshuablum (1 commits)")[![jnbn](https://avatars.githubusercontent.com/u/112425?v=4)](https://github.com/jnbn "jnbn (1 commits)")[![dhrp](https://avatars.githubusercontent.com/u/2017300?v=4)](https://github.com/dhrp "dhrp (1 commits)")[![andrewjmead](https://avatars.githubusercontent.com/u/2992789?v=4)](https://github.com/andrewjmead "andrewjmead (1 commits)")

### Embed Badge

![Health badge](/badges/stoffelio-statamic-turnstile/health.svg)

```
[![Health](https://phpackages.com/badges/stoffelio-statamic-turnstile/health.svg)](https://phpackages.com/packages/stoffelio-statamic-turnstile)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)[xemlock/htmlpurifier-html5

HTML5 support for HTML Purifier

1052.9M11](/packages/xemlock-htmlpurifier-html5)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
