PHP Classes

Secure Number Image Creator: Generate an image with a random number or text

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 75%Total: 1,968 All time: 2,001 This week: 45Up
Version License PHP version Categories
sni 1.0BSD License4.0Graphics
Description 

Author

This is a simple class that can be used to generate an image with a random number or text.

The class can compute a random number, render the number or a given text in an image using the GD extension and then output the image in the GIF format.

Picture of Armin Borumand
Name: Armin Borumand <contact>
Classes: 1 package by
Country: Iran Iran

Details

Secure Number Image Creator: This is a simple class that can be used to generate an image with a random number or text. How to use(my example--See the example.php source code): 1) use img.php as a picture: <img src="img.php" /> 2) (in example.php)check $_SESSION['key'] and compare with $_POST['number'] if($_POST['number']==$_SESSION['key']){ //Do }

Screenshots (1)  
  • image.jpg
  Files folder image Files (5)  
File Role Description
Accessible without login Plain text file class.sni.php Class sni class
Plain text file example.php Example simple example
Plain text file img.php Example Example image
Accessible without login Plain text file ReadMe Doc. ReadMe

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:1,968
This week:0
All time:2,001
This week:45Up
User Ratings User Comments (2)
 All time
Utility:98%StarStarStarStarStar
Consistency:94%StarStarStarStarStar
Documentation:82%StarStarStarStarStar
Examples:90%StarStarStarStarStar
Tests:-
Videos:-
Overall:75%StarStarStarStar
Rank:69
 
Excellent
15 years ago (kishore kumar)
80%StarStarStarStarStar
very easy to use and to the point
17 years ago (imran raf)
77%StarStarStarStar