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: 315 All time: 7,254 This week: 110Up
Version License PHP version Categories
captcha-image-maker 1.0.1The PHP License5PHP 5, Graphics, Validation
Description 

Author

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: 27833 in Algeria Algeria
Week rank: 312 Up1 in Algeria Algeria Up
Innovation award
Innovation award
Nominee: 2x

Example

<?php

require "src/Captcha.php";

$captcha = new CaptchaImageMaker;
var_dump($captcha->make());


Details

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

Note:

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 README.md 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  
 100%
Total:315
This week:0
All time:7,254
This week:110Up