PHPackages                             laercionunesc/captcha-cf - 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. laercionunesc/captcha-cf

ActiveCakephp-plugin

laercionunesc/captcha-cf
========================

Easily use Turnstile Cloudflare plugin for CakePHP

v1.0.0(1y ago)18MITPHPPHP &gt;=5.6

Since Jan 15Pushed 1y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

CaptchaCf Turnstile CloudFlare plugin for CakePHP 3.x
=====================================================

[](#captchacf-turnstile-cloudflare-plugin-for-cakephp-3x)

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require laercionunesc/captcha-cf

```

followed by the command:

```
composer update

```

Load plugin
-----------

[](#load-plugin)

From command line:

```
bin/cake plugin load CaptchaCf

```

OR load in config/bootstrap.php

```
Plugin::load('CaptchaCf', ['bootstrap' => false, 'autoload' => true]);

```

Load Component and Configure
----------------------------

[](#load-component-and-configure)

Override default configure from loadComponent in Controller:

```
$this->loadComponent('CaptchaCf.CaptchaCf', [
    'enable' => true,
    'sitekey' => 'key-public', // get credentials in https://developers.cloudflare.com/turnstile/get-started/#existing-sites
    'secret' => 'key-secret',
    'size' => 'flexible',
    'theme' => 'auto',
    'language' => 'en'
]);

```

Usage
-----

[](#usage)

Display Captcha Turnstile in your view:

```

      // Display Captcha Turnstile box in your view, if configure has enable = false, nothing will be displayed

```

Verify in your controller function

```
    public function login()
    {
        if ($this->request->is('post')) {
            if ($this->CaptchaCf->verify()) { // if configure enable = false, it will always return true
                //do something here
            }
            $this->Flash->error(__('Please pass Turnstile first'));
        }
    }

```

Done!

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance42

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

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

480d ago

### Community

Maintainers

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

---

Top Contributors

[![laercionunesc](https://avatars.githubusercontent.com/u/13398775?v=4)](https://github.com/laercionunesc "laercionunesc (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laercionunesc-captcha-cf/health.svg)

```
[![Health](https://phpackages.com/badges/laercionunesc-captcha-cf/health.svg)](https://phpackages.com/packages/laercionunesc-captcha-cf)
```

###  Alternatives

[friendsofcake/cakepdf

CakePHP plugin for creating and/or rendering Pdfs, several Pdf engines supported.

3752.1M3](/packages/friendsofcake-cakepdf)[cakephp/bake

Bake plugin for CakePHP

11211.2M156](/packages/cakephp-bake)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308850.3k14](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1862.1M26](/packages/dereuromark-cakephp-ide-helper)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

129228.6k10](/packages/dereuromark-cakephp-tinyauth)

PHPackages © 2026

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