1. Go to this page and download the library: Download decodelabs/atlas 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/ */
use DecodeLabs\Atlas;
foreach(Atlas::scan('my/dir') as $name => $fileOrDir) {
// All files and dirs in my/dir
}
foreach(Atlas::scanDirs('my/dir') as $name => $dir) {
// All dirs in my/dir
}
foreach(Atlas::listFilesRecursive('my/dir', function($name, $file) {
// Return true if you want the file to be output
return $name !== 'BadFile.php';
}) as $name => $file) {
// All files in all dirs in my/dir
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.