PHP code example of codeinc / directory-classes-iterator
1. Go to this page and download the library: Download codeinc/directory-classes-iterator library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
codeinc / directory-classes-iterator example snippets
use CodeInc\DirectoryClassesIterator\RecursiveDirectoryClassesIterator;
use CodeInc\DirectoryClassesIterator\DirectoryClassesIterator;
// recursive listing
$iterator = new RecursiveDirectoryClassesIterator('/path/to/libriaries');
// recursive listing with specific extensions
$iterator = new RecursiveDirectoryClassesIterator('/path/to/libriaries', ['php', 'phtml', 'inc']);
// non recursive listing
$iterator = new DirectoryClassesIterator('/path/to/libriaries');