Download the PHP package refbw/uniform-simple-captcha without Composer

On this page you can find all versions of the php package refbw/uniform-simple-captcha. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package uniform-simple-captcha

Simple captcha

This plugin implements a simple captcha guard for Martin Zurowietz' kirby-uniform plugin for Kirby v3 - dependency-free & GDPR-friendly, powered by php-simple-captcha, a fork of Gregwar/Captcha.

Note: The generated image uses a data URI as its src attribute, everything else is handled by Kirby's session object.

Getting started

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

Git submodule

If you know your way around Git, you can download this plugin as a submodule:

Composer

Clone or download

  1. Clone or download this repository.
  2. Unzip / Move the folder to site/plugins.

Usage

Template

There are two helper functions:

You may use them in your template like so:

Controller

After that, you have to enable the guard by calling simplecaptchaGuard() on the $form object.

For more information, check out the kirby-uniform docs on its magic methods:

Configuration

You may change certain options from your config.php globally ('simple-captcha.optionName'):

Option Type Default Description
'length' int 5 Number of characters
'charset' string a-z, A-Z, 0-9 Allowed characters (as string)
'width' int 150 Captcha image width
'height' int 40 Captcha image height
'fonts' string/array see fonts Path(s) to font file(s)
'distort' bool true Whether to distort the image
'interpolate' bool true Whether to interpolate the image
'maxLinesBehind' int random Maximum number of lines behind the captcha phrase
'maxLinesFront' int random Maximum number of lines in front of the captcha phrase
'maxAngle' int 8 Maximum character angle
'maxOffset' int 5 Maximum character offset
'bgColor' array/string random Background color, RGB, HEX or 'transparent'
'lineColor' array/string random Line color, RGB or HEX
'textColor' array/string random Text color, RGB or HEX
'bgImage' array/string none Path to background image
'applyEffects' bool true Whether to apply (any) effects
'applyNoise' bool true Whether to apply background noise (using random letters)
'noiseFactor' int 2 Multiples of phrase length to be used for noise generation
'applyPostEffects' bool true Whether to apply post effects
'applyScatterEffect' bool true Whether to enable scatter effect
'randomizeFonts' bool true Whether to use random font for each symbol

Note:

License

This plugin is licensed under the buy a license.


All versions of uniform-simple-captcha with dependencies

PHP Build Version
Package Version
Requires getkirby/composer-installer Version ^1.1
mzur/kirby-uniform Version ^5.0
s1syphos/php-simple-captcha Version ^2.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package refbw/uniform-simple-captcha contains the following files

Loading the files please wait ....