PHP Classes

PHP Directory Iterator: Display a list of files and directories in a path

Recommend this page to a friend!
  Info   Example   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 53%Total: 225 All time: 8,218 This week: 206Up
Version License PHP version Categories
directory-iterator 1.0GNU General Publi...5PHP 5, Files and Folders
Description 

Author

This class can display a list of files and directories in a path.

It can use the directory iterator class to traverse a given directory and displays the type of files that it finds.

The class can also display the time it took to traverse the given directory.

Picture of FERNANDO CUNHA
  Performance   Level  
Name: FERNANDO CUNHA <contact>
Classes: 2 packages by
Country: Brazil Brazil

Example

<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.

 * @author Fernando Cunha
 * @email fecunhainfo@gmail.com
 * @since 06/2016
 * */

require_once 'FileClassUtil.php';

$path = "files\\";

$file = new FileClassUtil($path);


Screenshots (1)  
  • example
  Files folder image Files (7)  
File Role Description
Files folder imageDirectoryIterator (2 files, 1 directory)

  Files folder image Files (7)  /  DirectoryIterator  
File Role Description
Files folder imagefiles (4 files)
  Accessible without login Plain text file example.php Example Example script
  Plain text file FileClassUtil.php Class Class source

  Files folder image Files (7)  /  DirectoryIterator  /  files  
File Role Description
  Accessible without login Plain text file file.txt Doc. Documentation
  Accessible without login Image file images.png Icon Icon image
  Accessible without login Image file php.png Icon Icon image
  Accessible without login Image file php_222.jpg 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  
 85%
Total:225
This week:0
All time:8,218
This week:206Up
 User Ratings  
 
 All time
Utility:66%StarStarStarStar
Consistency:66%StarStarStarStar
Documentation:66%StarStarStarStar
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2263