PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 317 All time: 7,251 This week: 69Up
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 LAGGOUNE Walid
  Performance   Level  
Name: LAGGOUNE Walid <contact>
Classes: 8 packages by
Country: Algeria Algeria
Age: 23
All time rank: 27563 in Algeria Algeria
Week rank: 22 Up1 in Algeria Algeria Up
Innovation award
Innovation award
Nominee: 3x

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 (4)  
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 (4)  /  images  
File Role Description
  Accessible without login Image file background.png Icon Icon image

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:317
This week:0
All time:7,251
This week:69Up