PHPackages                             fet/laminas-cloudflare-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. fet/laminas-cloudflare-turnstile

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

fet/laminas-cloudflare-turnstile
================================

An implementation of cloudflare turnstile for Laminas applications.

0.1.0(1y ago)095MITPHPPHP ^8.1

Since Apr 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/f-E-T/laminas-cloudflare-turnstile)[ Packagist](https://packagist.org/packages/fet/laminas-cloudflare-turnstile)[ Docs](https://github.com/f-e-t/laminas-cloudflare-turnstile)[ RSS](/packages/fet-laminas-cloudflare-turnstile/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (11)Versions (2)Used By (0)

Introduction
============

[](#introduction)

The `fet/laminas-cloudflare-turnstile` package provides a Cloudflare turnstile widget integration for Laminas forms.

Installation
============

[](#installation)

To install this package, use Composer:

```
composer require fet/laminas-cloudflare-turnstile
```

Enable the `Fet\\LaminasCloudflareTurnstile` module in your `config/application.config.php` file.

```
return [
    'modules' => [
        // ... other modules ...
        'Fet\\LaminasCloudflareTurnstile',
    ],
];
```

Usage
=====

[](#usage)

You can add the turnstile adapter via the `captcha` option to your form and render the element in your view.

Form
----

[](#form)

```
$form = new \Laminas\Form\Form('my-form');
$form->add([
    'name' => 'captcha',
    'type' => \Laminas\Form\Element\Captcha::class,
    'options' => [
        'captcha' => new \Fet\LaminasCloudflareTurnstile\TurnstileCaptcha([
            'site_key' => getenv('CLOUDFLARE_TURNSTILE_SITE_KEY'),
            'secret_key' => getenv('CLOUDFLARE_TURNSTILE_SECRET_KEY'),
        ]),
    ]
]);
```

View
----

[](#view)

```
form($this->form); ?>

formElement($this->form->get('captcha')); ?>
formElementErrors($this->form->get('captcha')); ?>
```

Tests
=====

[](#tests)

Run the tests with:

```
composer test
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance48

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

382d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc87555460306e35d17c3ede6ec071a207ba15d59d340a71380fb74b871ad659?d=identicon)[f-E-T](/maintainers/f-E-T)

---

Top Contributors

[![f-E-T](https://avatars.githubusercontent.com/u/87535893?v=4)](https://github.com/f-E-T "f-E-T (1 commits)")

---

Tags

captchacloudflarecloudflare-turnstilelaminasturnstilelaminascaptchacloudflareturnstilecloudflare turnstile

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/fet-laminas-cloudflare-turnstile/health.svg)

```
[![Health](https://phpackages.com/badges/fet-laminas-cloudflare-turnstile/health.svg)](https://phpackages.com/packages/fet-laminas-cloudflare-turnstile)
```

###  Alternatives

[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[kokspflanze/bjy-authorize

Laminas\\Acl based firewall system for Laminas dispatch protection

20178.2k4](/packages/kokspflanze-bjy-authorize)[usarise/turnstile

PHP library for Turnstile, is Cloudflare’s smart CAPTCHA alternative. It can be embedded into any website without sending traffic through Cloudflare and works without showing visitors a CAPTCHA.

2393.5k6](/packages/usarise-turnstile)[saeven/zf3-circlical-user

Complete user entity, rights, and access module for Laminas

3718.7k](/packages/saeven-zf3-circlical-user)[andkab/php-turnstile

API Implementation of CloudFlare Turnstile for PHP

117.3k](/packages/andkab-php-turnstile)

PHPackages © 2026

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