PHP Classes

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

Recommend this page to a friend!
  Info   View files View files (14)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2022-10-28 (1 month ago) RSS 2.0 feedStarStarStarStar 66%Total: 686 This week: 6All time: 4,726 This week: 135Up
Version License PHP version Categories
osol-multi-captcha 7GNU 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
Age: ???
All time rank: 2301144 in India India
Week rank: 146 Up11 in India India Up

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 (1 file)
  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
  HTML file index.html Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 85%
Total:686
This week:6
All time:4,726
This week:135Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:83%StarStarStarStarStar
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:66%StarStarStarStar
Rank:699