PHP code example of carry0987 / filelist

1. Go to this page and download the library: Download carry0987/filelist 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/ */

    

carry0987 / filelist example snippets




use carry0987\FileList\FileList as FileList;

$filelist = new FileList;

$result = $filelist->sortFile(false)
        ->setPath(dirname(__DIR__).'/test')
        ->setAllowedFileType(FileList::NO_FILTER)
        ->startRDI()
        ->getResult();

echo '<pre>';
var_export($result);
echo '</pre>';