PHP Classes

Pure PHP CAPTCHA: Generate CAPTCHA images without using GD extension

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
StarStarStar 50%Total: 782 All time: 4,350 This week: 38Up
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 <contact>
Classes: 4 packages by
Country: Iran Iran
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 (5)  
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

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  
 0%
Total:782
This week:0
All time:4,350
This week:38Up
User Ratings User Comments (2)
 All time
Utility:70%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:50%StarStarStar
Rank:2712
 
not found PureTextRender
10 years ago (hassan ahmadi)
0%Star
Thats a good and useful class ;-)
10 years ago (José Filipe Lopes Santos)
70%StarStarStarStar