Download the PHP package anselmh/kirby-uniform-turnstile without Composer
On this page you can find all versions of the php package anselmh/kirby-uniform-turnstile. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download anselmh/kirby-uniform-turnstile
More information about anselmh/kirby-uniform-turnstile
Files in anselmh/kirby-uniform-turnstile
Package kirby-uniform-turnstile
Short Description Kirby 3 Cloudflare Turnstile guard for the Uniform plugin
License MIT
Informations about the package kirby-uniform-turnstile
Uniform Cloudflare Turnstile Guard
A Kirby 3 plugin implementing a Cloudflare Turnstile guard for the Uniform plugin.
Installation
Composer
Add the plugin to your project:
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 so it is required to install this package as well.
Configuration
Set the configuration in your config.php
file:
Usage
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 </body>
tag.
Example
Controller
In your controller you can use the magic method turnstileGuard()
to enable the turnstile guard:
Credits
- Thanks to Lukas Dürrenberger for the Uniform reCAPTCHA Guard Plugin
- Thanks to Lukas Leitsch for the Uniform hCaptcha Guard Plugin