2017 © Pedro Peláez
 

library cws-captcha

PHP class to generate a captcha to avoid spam.

image

crazy-max/cws-captcha

PHP class to generate a captcha to avoid spam.

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Latest Stable Version Minimum PHP Version Build Status Code Quality Become a sponsor Donate Paypal, (*1)

:warning: Abandoned project

This project is not maintained anymore and is abandoned. Feel free to fork and make your own changes if needed., (*2)

Thanks to everyone for their valuable feedback and contributions., (*3)

About

PHP class to generate a captcha to avoid spam., (*4)

Installation

composer require crazy-max/cws-captcha

And download the code:, (*5)

composer install # or update

Getting started

See tests/test.php, tests/testCaptcha.php files samples to help you., (*6)

To create a captcha, copy/edit testCaptcha.php file and insert this in your HTML :, (*7)

<img src="testCaptcha.php" />

Example

, (*8)

Methods

process - Process the captcha generation.
check - Static method that checks the captcha code entered.
, (*9)

getWidth - Captcha width in px.
setWidth - Set the captcha width in px.
getHeight - Captcha height in px.
setHeight - Set the captcha height in px.
getMinLength - Captcha minimum length.
setMinLength - Set the captcha minimum length.
getMaxLength - Captcha maximum length.
setMaxLength - Set the captcha maximum length.
getBgdColor - Hexadecimal background color.
setBgdColor - Set the hexadecimal background color.
getBgdTransparent - The background transparent for PNG image type.
setBgdTransparent - Set background transparent for PNG image type. If enabled, this will disable the background color.
getFgdColors - Hexadecimal foreground colors list for font letters.
setFgdColors - Set the Hexadecimal foreground colors list for font letters.
getFonts - Fonts definition (letter_space, min and max size, filename).
getMaxRotation - Max clockwise rotations for a letter.
setMaxRotation - Set the max clockwise rotations for a letter.
getPeriod - Generated image period (x, y).
setPeriod - Set the generated image period (x, y).
getAmplitude - Generated image amplitude (x, y).
setAmplitude - Set the generated image amplitude (x, y).
getBlur - The blur effect using the Gaussian method.
setBlur - Add blur effect using the Gaussian method.
getEmboss - The emboss effect.
setEmboss - Add emboss effect.
getPixelate - The pixelate effect.
setPixelate - Add pixelate effect.
getFormat - Image format.
setPngFormat - Set the png image format. (default)
setJpegFormat - Set the jpeg image format.
getError - The last error.
, (*10)

How can I help ?

All kinds of contributions are welcome :raised_hands:! The most basic way to show your support is to star :star2: the project, or to raise issues :speech_balloon: You can also support this project by becoming a sponsor on GitHub :clap: or by making a Paypal donation to ensure this journey continues indefinitely! :rocket:, (*11)

Thanks again for your support, it is much appreciated! :pray:, (*12)

License

MIT. See LICENSE for more details., (*13)

The Versions

09/05 2018

dev-master

9999999-dev https://github.com/crazy-max/CwsCaptcha

PHP class to generate a captcha to avoid spam.

  Sources   Download

MIT LGPL

The Requires

 

captcha spam

30/04 2018

1.0

1.0.0.0

  Sources   Download

30/04 2018

1.1

1.1.0.0

  Sources   Download

30/04 2018

1.2

1.2.0.0

  Sources   Download

30/04 2018

1.3

1.3.0.0

  Sources   Download

30/04 2018

1.4

1.4.0.0

  Sources   Download

04/01 2018

1.7

1.7.0.0 https://github.com/crazy-max/CwsCaptcha

PHP class to generate a captcha to avoid spam.

  Sources   Download

MIT

The Requires

 

captcha spam

28/11 2016

1.6

1.6.0.0 https://github.com/crazy-max/CwsCaptcha

PHP class to generate a captcha to avoid spam.

  Sources   Download

LGPL

The Requires

 

captcha spam

22/08 2016

1.5

1.5.0.0 https://github.com/crazy-max/CwsCaptcha

PHP class to generate a captcha to avoid spam.

  Sources   Download

LGPL

The Requires

 

captcha spam