carry0987/filelist

FileList is a PHP library for getting files and directories recursively

1.0.3 2024-01-21 11:32 UTC

This package is auto-updated.

Last update: 2024-11-21 13:18:40 UTC


README

Latest Stable Version
FileList is a PHP library for getting files and directories recursively

Installation

composer require carry0987/filelist

Usage

require dirname(__DIR__).'/vendor/autoload.php';

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>';