PHP Classes

CAPTCHA Image Maker: Generate image with random text for a CAPTCHA

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 316 All time: 7,256 This week: 455Up
Version License PHP version Categories
captcha-image-maker 1.0.1The PHP License5PHP 5, Graphics, Validation


This class can generate image with random text for a CAPTCHA.

It can create an image a random text and some obfuscating lines.

The generated image is saved to a local file in the PNG format.

Picture of walid laggoune
  Performance   Level  
Name: walid laggoune <contact>
Classes: 7 packages by
Country: Algeria Algeria
Age: 23
All time rank: 27823 in Algeria Algeria
Week rank: 280 Up1 in Algeria Algeria Up
Innovation award
Innovation award
Nominee: 2x



require "src/Captcha.php";

$captcha = new CaptchaImageMaker;



Simple class written in php to create captcha image.

How to use:

there is an example in app.php . The cpatcha image will be saved in images/cap.png


This class works only when GD library loaded.

  Files folder image Files  
File Role Description
Files folder imageimages (1 file)
Files folder imagesrc (1 file)
Accessible without login Plain text file app.php Example Example script
Accessible without login Plain text file Doc. Documentation

  Files folder image Files  /  images  
File Role Description
  Accessible without login Image file background.png Icon Icon image

  Files folder image Files  /  src  
File Role Description
  Plain text file Captcha.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:7,256
This week:455Up