PHP Classes

CAPTCHA: Class to generate little CAPTCHA pictures

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum (4)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 62%Total: 14,883 All time: 61 This week: 107Down
Version License PHP version Categories
captcha 2.0.1GNU General Publi...4.0.1Graphics, Validation


A CAPTCHA (Completely Automated Public Turing to tell Computers from Humans Apart) is a program that can generate and grade tests that:

- Most humans can pass.
- Current computer programs cannot pass.

For example, humans can read distorted text but current computer programs cannot.

Picture of Pascal Rehfeldt
Name: Pascal Rehfeldt <contact>
Classes: 3 packages by
Country: Germany Germany
Age: ???
All time rank: 646 in Germany Germany
Week rank: 344 Down11 in Germany Germany Down


Extract the used color from the image.
Detect cloth on the image and extract the color of it


==[ Foreword ]== This version is completely redesigned with a fancy new look of CAPTCHA. In order to simplify the the usage, I also redisgned the interface. The newest Version can be found at [1]. ==[ Requirements ]== - PHP >= 4.0.1 - TTF support - Some fonts ==[ Fonts ]== Before you can start using this class, you need some fonts. You can either get the font-package [2] or some other fonts [3]. When you got one or more fonts, just put them into the font directory and they will be used randomly. ==[ Usage ]== It's realy easy to use this class. Example: Generatin a CAPTCHA: $captcha = new captcha(); To geht the string shown in the CAPTCHA use this: $CaptchaString = $captcha->GetCaptchaString(); See example.php and captcha.php for a detailed example. That's it :) ==[ Author ]== Pascal Rehfeldt ==[ License ]== GNU General Public License (Version 2, June 1991) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. [1] [2] [3]

  • captcha_screenshot.png
  Files folder image Files  
File Role Description
Files folder imageclass (3 files)
Files folder imagefonts (1 file)
Files folder imagegfx (2 files)
Plain text file captcha.php Example little example
Accessible without login Plain text file CHANGELOG Doc. Changelog
Plain text file example.php Example Testsuit
Accessible without login Plain text file LICENSE Lic. License
Accessible without login Plain text file README Doc. small FAQ and description of the class

  Files folder image Files  /  class  
File Role Description
  Plain text file captcha.class.php Class main class
  Plain text file error.class.php Class Error Management
  Plain text file filter.class.php Class Filter Class

  Files folder image Files  /  fonts  
File Role Description
  Plain text file README Doc. README

  Files folder image Files  /  gfx  
File Role Description
  Image file errorsign.jpg Icon Error Sign
  Plain text file README Doc. README

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:61
This week:107Down
User Ratings User Comments (1)
 All time
Great package.
13 years ago (Bogdan Lupandin)