PHP Classes

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

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

Author

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
Innovation award
Innovation award
Nominee: 4x

Example

<?php

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





Details

pretty_folder_structure

List out directory contents


require 'src/Dir.php';

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

echo Dir::structure('Folder');

alt tag


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

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

  Files folder image Files (19)  /  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

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  
 100%
Total:192
This week:0
All time:8,570
This week:488Up