PHP Classes

File Icon: Get the icon and other types of file metadata

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
StarStarStar 57%Total: 2,169 All time: 1,806 This week: 78Up
Version License Categories
fileicon 1.0.0GNU General Publi...Files and Folders
Description 

Author

This class can be used to retrieve icons and other types of metadata of a given file.

It can retrieve the icon image file name associated to a file based on the file name extension. It may also return <img> tags to display the file icon in HTML pages.

Several image files of graphic size 16x16 are provided to associate to many common file types.

The class can also retrieve the size of the file either in KB, MB or GB depending on how large the file is.

The class may also retrieve the file name extension, last change time, the file owner and the file group.

Picture of Hadar Porat
Name: Hadar Porat <contact>
Classes: 5 packages by
Country: United States United States

Screenshots (1)  
  • example.jpg
  Files folder image Files (28)  
File Role Description
Files folder imageicons (25 files)
Plain text file example.php Example Example script
Plain text file FileIcon.inc.php Class Main Class

  Files folder image Files (28)  /  icons  
File Role Description
  Image file access.gif Icon Icon image
  Image file audio.gif Icon Icon image
  Image file binary.gif Icon Icon image
  Image file chm.gif Icon Icon image
  Image file doc.gif Icon Icon image
  Image file dvi.gif Icon Icon image
  Image file htm.gif Icon Icon image
  Image file image.gif Icon Icon image
  Image file js.gif Icon Icon image
  Image file oo-calc.gif Icon Icon image
  Image file oo-draw.gif Icon Icon image
  Image file oo-impress.gif Icon Icon image
  Image file oo-write.gif Icon Icon image
  Image file pdf.gif Icon Icon image
  Image file php.gif Icon Icon image
  Image file ppt.gif Icon Icon image
  Image file project.gif Icon Icon image
  Image file ps.gif Icon Icon image
  Image file rtf.gif Icon Icon image
  Image file txt.gif Icon Icon image
  Image file video.gif Icon Icon image
  Image file visio.gif Icon Icon image
  Image file xls.gif Icon Icon image
  Image file xml.gif Icon Icon image
  Image file zip.gif Icon Icon image

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:2,169
This week:0
All time:1,806
This week:78Up
User Ratings User Comments (1)
 All time
Utility:81%StarStarStarStarStar
Consistency:84%StarStarStarStarStar
Documentation:-
Examples:87%StarStarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1606
 
Excellent
15 years ago (kishore kumar)
70%StarStarStarStar