PHP Classes

KG CAPTCHA Class: Generate images for CAPTCHA validation

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 684 All time: 4,751 This week: 107Up
Version License PHP version Categories
kgcaptchaclass 1.0GNU General Publi...4Graphics, Validation, Security


This class can be used to generate images for CAPTCHA validation.

It renders a random text with letters and digits in an image. The rendered text is stored in a session variable for posterior validation.

The generated image may have a random background image rendered behind the text.

The length of the validation text, the colors, and text fonts are configurable.

The validation image can be generated in the GIF, PNG or JPEG formats as the current script output.

Picture of Muharrem ERIN
Name: Muharrem ERIN <contact>
Classes: 5 packages by
Country: Turkey Turkey
Age: 40
All time rank: 87317 in Turkey Turkey
Week rank: 358 Up7 in Turkey Turkey Up

  Files folder image Files  
File Role Description
Accessible without login Image file bg_1.png Output background image 1
Accessible without login Image file bg_2.png Output Background image 2
Accessible without login Plain text file captcha_image.php Example create image file
Plain text file kgCaptcha.class.php Class class file
Accessible without login Plain text file test.php Example test file

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,751
This week:107Up