PHP Classes

Pure PHP CAPTCHA: Generate CAPTCHA images without using GD extension

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (6)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 53%Total: 779 All time: 4,354 This week: 134Up
Version License PHP version Categories
pure-captcha 1.0GNU Lesser Genera...4.0PHP 5, Graphics, Validation
Description 

Author

This class can Generate CAPTCHA images without using GD extension.

It extends the PureTextRender class to generate an image with a random text with a given length.

The text in the image is scaled, rotated, and distorted to make it more difficult for automated scripts recognized the text.

The class returns the rendered text string for posterior validation.

The base class generates the image as the current script output in pure PHP, i.e. without using GD or any other PHP extensions to generate images.

Picture of Abius X
  Performance   Level  
Name: Abius X is available for providing paid consulting. Contact Abius X .
Classes: 4 packages by
Country: Iran Iran
Age: 36
All time rank: 114810 in Iran Iran
Week rank: 312 Up8 in Iran Iran Up
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

Example

<?php
require_once __DIR__."/pure_captcha.php";
$k=new PureCaptcha();
$captchaToken=$k->show();
//persist the token somewhere for further use


  Files folder image Files  
File Role Description
Plain text file pure_captcha.php Class PureCaptcha class
Accessible without login Plain text file example.php Example Example Usage
Accessible without login Image file screenshot1.bmp Output sample generated CAPTCHA
Accessible without login Image file screenshot2.bmp Output sample generated CAPTCHA
Accessible without login Image file screenshot3.bmp Output sample generated CAPTCHA

 Version Control Unique User Downloads Download Rankings  
 0%
Total:779
This week:0
All time:4,354
This week:134Up
User Ratings User Comments (2)
 All time
Utility:75%StarStarStarStar
Consistency:80%StarStarStarStarStar
Documentation:-
Examples:80%StarStarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2162
 
not found PureTextRender
9 years ago (hassan ahmadi)
0%Star
Thats a good and useful class ;-)
9 years ago (José Filipe Lopes Santos)
70%StarStarStarStar