PHPackages                             fluxsoft/php-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. [API Development](/categories/api)
4. /
5. fluxsoft/php-turnstile

ActiveLibrary[API Development](/categories/api)

fluxsoft/php-turnstile
======================

API Implementation of CloudFlare turnstile for PHP

v0.1.3(3y ago)54.9k↓37.5%31MITPHPPHP &gt;=7.0

Since Oct 15Pushed 3y agoCompare

[ Source](https://github.com/flux-soft/php-turnstile)[ Packagist](https://packagist.org/packages/fluxsoft/php-turnstile)[ Docs](https://github.com/flux-soft/php-turnstile)[ RSS](/packages/fluxsoft-php-turnstile/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)DependenciesVersions (6)Used By (1)

PHP TURNSTILE
=============

[](#php-turnstile)

Description
-----------

[](#description)

API Implementation of [Cloudflare turnstile](https://www.cloudflare.com/products/turnstile/) for PHP

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

[](#installation)

```
composer require fluxsoft/php-turnstile
```

Usage
-----

[](#usage)

Here's an example of usage:

```
// require vendor
use FluxSoft\Turnstile\Turnstile;

$turnstile = new Turnstile('secret key');
$verifyResponse = $turnstile->verify($_POST['cf-turnstile-response'], $_SERVER['REMOTE_ADDR']);

if ($verifyResponse->success) {
    // successfully verified captcha resolving
} else {
    if ($verifyResponse->hasErrors()) {
        foreach ($verifyResponse->errorCodes as $errorCode) {
            echo $errorCode . '\n';
        }
    } else {
        // unknown reason of failure resolving of captcha
    }
}
```

```
>

            check

```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 70.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 ~10 days

Total

4

Last Release

1280d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/83cb9decfc095f3e066aebb37c35da200d1d6735a1e99e7411720eecb7cdfe9d?d=identicon)[Matix8981](/maintainers/Matix8981)

---

Top Contributors

[![mwoznowski](https://avatars.githubusercontent.com/u/27568157?v=4)](https://github.com/mwoznowski "mwoznowski (12 commits)")[![tomsommer](https://avatars.githubusercontent.com/u/149171?v=4)](https://github.com/tomsommer "tomsommer (4 commits)")[![oakhurstmgmt](https://avatars.githubusercontent.com/u/65561814?v=4)](https://github.com/oakhurstmgmt "oakhurstmgmt (1 commits)")

---

Tags

captchacloudflareturnstile

### Embed Badge

![Health badge](/badges/fluxsoft-php-turnstile/health.svg)

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

###  Alternatives

[2captcha/2captcha

PHP package for easy integration with 2captcha API

86430.0k3](/packages/2captcha-2captcha)[recaptcha/php5

A properly coded PHP 5 reCaptcha class that will allow you to interact with Google's reCaptcha API.

48694.0k4](/packages/recaptcha-php5)[sebdesign/artisan-cloudflare

Laravel artisan commands for Cloudflare

77273.8k](/packages/sebdesign-artisan-cloudflare)[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)[laragear/turnstile

Use Cloudflare's no-CAPTCHA with HTTP/3 in your Laravel application.

684.5k](/packages/laragear-turnstile)[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)
