PHP Classes

Pretty PHP Folder Structure View: Show files and sub-folders of a folder using icons

Recommend this page to a friend!
  Info   View files Example   View files View files (19)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 192 All time: 8,564 This week: 488Up
Version License PHP version Categories
folder_structure 1.0.0BSD License5HTML, PHP 5, Graphics


This package can show files and sub-folders of a folder using icons.

It can scan a file system folder with a given path to extract the list of files and folders it contains.

The package can output HTML and CSS to display the list of scanned files and sub-folders and visually appealing way.

Picture of chrys ugwu
  Performance   Level  
Name: chrys ugwu <contact>
Classes: 16 packages by
Country: Nigeria Nigeria
Age: 31
All time rank: 16817 in Nigeria Nigeria
Week rank: 305 Up7 in Nigeria Nigeria Equal
Innovation award
Innovation award
Nominee: 4x



require 'src/Dir.php';
Dir::setColor('green', 'green');



List out directory contents

require 'src/Dir.php';

Dir::setColor('green', 'green');

echo Dir::structure('Folder');

alt tag

  Files folder image Files  
File Role Description
Files folder imagesrc (1 file, 1 directory)
Plain text file index.php Example Example script
Plain text file Doc. Documentation
Image file SS.PNG Screen Screenshot

  Files folder image Files  /  src  
File Role Description
Files folder imageAssets (15 files)
  Plain text file Dir.php Class Class source

  Files folder image Files  /  src  /  Assets  
File Role Description
  Image file D_blue.png Icon Icon image
  Image file D_blueE.png Icon Icon image
  Image file D_green.png Icon Icon image
  Image file D_greenE.png Icon Icon image
  Image file D_red.png Icon Icon image
  Image file D_redE.png Icon Icon image
  Image file D_white.png Icon Icon image
  Image file D_whiteE.png Icon Icon image
  Image file D_yellow.png Icon Icon image
  Image file D_yellowE.png Icon Icon image
  Image file F_blue.png Icon Icon image
  Image file F_green.png Icon Icon image
  Image file F_red.png Icon Icon image
  Image file F_whiteE.png Icon Icon image
  Image file F_yellow.png Icon Icon image

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:8,564
This week:488Up