PHPackages                             refbw/uniform-simple-captcha - 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. refbw/uniform-simple-captcha

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

refbw/uniform-simple-captcha
============================

Simple captcha guard for 'mzur/kirby-uniform' &amp; Kirby v3

2.1.1(3y ago)0193[1 issues](https://github.com/S1SYPHOS/uniform-simple-captcha/issues)1MITPHP

Since Mar 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/S1SYPHOS/uniform-simple-captcha)[ Packagist](https://packagist.org/packages/refbw/uniform-simple-captcha)[ RSS](/packages/refbw-uniform-simple-captcha/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (6)Used By (1)

Simple captcha
==============

[](#simple-captcha)

This plugin implements a simple captcha guard for Martin Zurowietz' [`kirby-uniform`](https://github.com/mzur/kirby-uniform) plugin for Kirby v3 - dependency-free &amp; GDPR-friendly, powered by [`php-simple-captcha`](https://codeberg.org/S1SYPHOS/php-simple-captcha), a fork of [`Gregwar/Captcha`](https://github.com/Gregwar/Captcha).

**Note:** The generated image uses a data URI as its `src` attribute, everything else is handled by Kirby's [session object](https://getkirby.com/docs/reference/objects/cms/app/session).

Getting started
---------------

[](#getting-started)

Use one of the following methods to install &amp; use `refbw/uniform-simple-captcha`:

### Git submodule

[](#git-submodule)

If you know your way around Git, you can download this plugin as a [submodule](https://github.com/blog/2104-working-with-submodules):

```
git submodule add https://codeberg.org/refbw/uniform-simple-captcha.git site/plugins/uniform-simple-captcha

```

### Composer

[](#composer)

```
composer require s1syphos/refbw/uniform-simple-captcha

```

### Clone or download

[](#clone-or-download)

1. [Clone](https://codeberg.org/refbw/uniform-simple-captcha.git) or [download](https://codeberg.org/refbw/uniform-simple-captcha/archive/main.zip) this repository.
2. Unzip / Move the folder to `site/plugins`.

Usage
-----

[](#usage)

### Template

[](#template)

There are two helper functions:

- `simpleCaptcha()` for the captcha `img` tag
- `simpleCaptchaField()` for its `input` field

You may use them in your template like so:

```
# Captcha image
# Vanilla

# Custom attributes
