PHP Classes

Image to PHP: Convert a directory of images into a PHP class

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 61%Total: 3,789 All time: 860 This week: 524Up
Version License Categories
img2php 1.0Free For Educatio...Graphics, Code Generation
Description 

Author

This class is meant to read all images in a specified directory and then generates a PHP class with functions that serve the headers and the data of such image files.

It is very useful when you want to distribute a small PHP package with images embedded in the PHP code instead of using separate files.

Picture of Ben Yacoub Hatem
Name: Ben Yacoub Hatem <contact>
Classes: 18 packages by
Country: Tunisia Tunisia
Age: 46
All time rank: 241 in Tunisia Tunisia
Week rank: 197 Down1 in Tunisia Tunisia Equal
Innovation award
Innovation award
Nominee: 4x

  Files folder image Files (5)  
File Role Description
Accessible without login Plain text file gonximages.class.php Output Sample of a generated class
Accessible without login Plain text file image.php Aux. Utility php script that used to display images from the generated class
Plain text file img2php.class.php Class The main class generator
Accessible without login HTML file Readme.html Doc. Readme file
Accessible without login Plain text file sample.php Example Sample usage of the class

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:3,789
This week:0
All time:860
This week:524Up
 User Ratings  
 
 All time
Utility:77%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:72%StarStarStarStar
Examples:79%StarStarStarStar
Tests:-
Videos:-
Overall:61%StarStarStarStar
Rank:1052