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.1(2mo ago)824.3k↓47.5%7[4 issues](https://github.com/stoffelio/statamic-turnstile/issues)PHP

Since Sep 29Pushed 2mo 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 2d ago

READMEChangelog (8)Dependencies (2)Versions (9)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

49

—

FairBetter than 94% of packages

Maintenance78

Regular maintenance activity

Popularity36

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.6% 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 ~219 days

Recently: every ~263 days

Total

7

Last Release

60d 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 (16 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)")[![marcorieser](https://avatars.githubusercontent.com/u/2395800?v=4)](https://github.com/marcorieser "marcorieser (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

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[statamic/seo-pro

68516.6k](/packages/statamic-seo-pro)[statamic/statamic

Statamic

829179.5k](/packages/statamic-statamic)[statamic/eloquent-driver

Allows you to store Statamic data in a database.

126741.1k17](/packages/statamic-eloquent-driver)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.9k](/packages/duncanmcclean-statamic-cargo)[aryehraber/statamic-captcha

Protect your Statamic forms using a Captcha service

17211.2k](/packages/aryehraber-statamic-captcha)

PHPackages © 2026

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