PHPackages                             anselmh/kirby-uniform-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. [Security](/categories/security)
4. /
5. anselmh/kirby-uniform-turnstile

ActiveKirby-plugin[Security](/categories/security)

anselmh/kirby-uniform-turnstile
===============================

Kirby 3 Cloudflare Turnstile guard for the Uniform plugin

1.0.2(3y ago)122.1k↑30%1[1 issues](https://github.com/anselmh/kirby-uniform-turnstile/issues)MITPHPPHP ^8.0

Since Nov 10Pushed 5mo ago1 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Uniform Cloudflare Turnstile Guard
==================================

[](#uniform-cloudflare-turnstile-guard)

A [Kirby 3](https://getkirby.com/) plugin implementing a [Cloudflare Turnstile](https://developers.cloudflare.com/turnstile/) guard for the [Uniform](https://github.com/mzur/kirby-uniform) plugin.

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

[](#installation)

### Composer

[](#composer)

Add the plugin to your project:

```
composer require anselmh/kirby-uniform-turnstile

```

### Manual install

[](#manual-install)

It is possible to install plugins manually. Download from the Github Releases page, unpack the archive and put it into `site/plugins`. Please note that this project depends on [Uniform](https://github.com/mzur/kirby-uniform) so it is required to install this package as well.

Configuration
-------------

[](#configuration)

Set the configuration in your `config.php` file:

```
return [
  'anselmh.uniform-turnstile.siteKey' => 'my-site-key',
  'anselmh.uniform-turnstile.secretKey' => 'my-secret-key',
  'anselmh.uniform-turnstile.theme' => 'auto(default)|light|dark',
];
```

Usage
-----

[](#usage)

### Template

[](#template)

You can use the provided helper function to embed the Turnstile into your template:

```

```

In order for turnstile to work, you need to provide the Turnstile JavaScript file.

Use the helper function `turnstileScript()` in your template or add it to the template at right before the closing `` tag.

**Example**

```
 class="erroneous" name="name" type="text" value="
