PHP Classes

CAPTCHA with multiple options: Generate image with text for CAPTCHA validation

Recommend this page to a friend!
  Info   View files View files (17)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-06-15 (Yesterday) RSS 2.0 feedStarStarStarStar 60%Total: 713 This week: 2All time: 4,632 This week: 35Up
Version License PHP version Categories
osol-multi-captcha 14GNU General Publi...5.0PHP 5, Graphics, Validation, Security
Description 

Author

This class can generate image with text for CAPTCHA validation.

It can create an image with random text characters from a given list of characters rendered optionally in a distorted way and noise dots to obfuscate the image.

The generated text is stored in a class variable for subsequent validation.

The image is created with the size automatically adjusted to fit the text.

The image background color, text color, text font and size are configurable parameters.

The generated image is stored in a file in either JPEG, PNG or GIF formats.

Picture of Sreekanth Dayanand
Name: Sreekanth Dayanand <contact>
Classes: 2 packages by
Country: India India

Details

https://github.com/osolgithub/OSOLMulticaptcha.git Helps you to create captcha for your forms with multiple options. Available options are: 1.Background color 2.Text color 3.Noise in Background 4.Noise in Text Additional functions(ttf/otf files must be saved in utils/ttfs folder to use the following options) 5.Letter Type (Plane or distorted) 6.Allowed symbols(characters) 7.Font 8.Letter Size Open previewCaptcha.php in browser for customization You can preview the captcha with different settings by hovering mouse over "Hover Mouse here to preview Captcha with entered settings" text Once you hover ,the url of the currently previewed captcha will be written below it.So you could copy it to use it as captcha image source At any time you could also test how the captcha works with the current settings by clicking "Test Captcha with current settings" link PS:inorder to use options 5 to 8(Letter Type (Plane or distorted),Allowed symbols(characters),Font,Letter Size),If you are downloading from phpclasses.org, you should manuallly add atleast one TTF/OTF File in the utils/ttfs folder before you open previewCaptcha.php in browser

  Files folder image Files  
File Role Description
Files folder imageutils (5 files, 1 directory)
Plain text file displayCaptcha.php Example Example script
HTML file index.html Data Sample output
Image file osolMulticaptcha.jpg Screen How it looks
Plain text file OSOLmulticaptcha.php Class Class source
Plain text file previewCaptcha.php Example Unit test script
Image file previewPages.png Screen Preivew without and with TTF/OTF files
Plain text file readme.txt Doc. Documentation
Plain text file testOSOLmulticaptcha.php Aux. Unit test script

  Files folder image Files  /  utils  
File Role Description
Files folder imagettfs (4 files)
  Image file ajax-loader-big.gif Data Auxiliary data
  Image file font-png.png Data Auxiliary data
  Plain text file fontFileMeta.meta Data Auxiliary data
  Plain text file temp.meta Data Auxiliary data
  Image file temp.png Data Auxiliary data

  Files folder image Files  /  utils  /  ttfs  
File Role Description
  Plain text file AdLibBT.TTF Data Auxiliary data
  Plain text file BookmanOldStyle.TTF Data Auxiliary data
  Plain text file CooperBlack.TTF Data Auxiliary data
  HTML file index.html Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 88%
Total:713
This week:2
All time:4,632
This week:35Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:75%StarStarStarStar
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:60%StarStarStarStar
Rank:1203