Download the PHP package dubashi/simple-captcha-php without Composer
On this page you can find all versions of the php package dubashi/simple-captcha-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package simple-captcha-php
simple-captcha-php
Generate captcha image without using fonts, splitted captcha image or make animated GIF captcha.
Installation
With composer:
Usage
You can create a simple captcha :
Or can create animated captcha :
Options
You can use theses options :
- width, Width of result image(s) in pixels. Default: 100
- height, Height of result image(s) in pixels. Default: 50
- type, Type of result image(s). One of GD constants. Default: IMAGETYPE_JPEG
- thickness, Thinkness line of symbols in pixels. Default: 2
- colorFont, Font color. Array Red, Green, Blue color decimal component. Default: array( 30, 40, 50 )
- colorBackground, Background color. Default: array( 255, 255, 255 )
- dashed, Flag for use dashed line style. Default: false
- randPos, Flag for enable random position of verticies each one symbols. Default: false
- randPointPos, Flag for enable random position of verticies point scheme. Default: false
- randSym, Flag for use random symbols scheme. Default: false
- emboss, Flag for use emboss filter for image. Default: false
- nightmare, Flag for added more nightmare for bots and your users. Default: false
- gradient, Add gradient to image. Signed integer as -1, 0, 1. Default: 0 (none)
- noise, Add noise. Percent of count all pixels of image. Use sign to add noise after rendering captcha. Default: 0
- duration, The duration for GIF frames (in 1/100s). Default: 2
- loop, Loop GIF frames. Default: 0 (infinity)
API
You can use theses methods :
- create( $code ), Create Simple Captcha image with specified string code
- output(), Output image into stdout or browser
- outputFile(), Save Simple Captcha image(s) into file
- outputDataUri(), Output base64 encoded data of specified part of image
- dataUri(), Returns base64 encoded data of specified part of image
- outputImgHtml(), Output IMG tag
- imgHtml(), Returns IMG tag with captcha image(s)
- split(), Split source captcha image to parts
- setSymbolsScheme(), Set your own symbols scheme. See description of this method in code
License
This library is under MIT license, have a look to the LICENSE file
All versions of simple-captcha-php with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.2.0
ext-gd Version *
ext-gd Version *
The package dubashi/simple-captcha-php contains the following files
Loading the files please wait ....