PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of DeGraciaMathieu   PHP File Explorer   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP File Explorer
Find files that match a given criteria in a folder
Author: By
Last change:
Date: 1 year ago
Size: 1,111 bytes
 

Contents

Class file image Download

PHP Composer packagist) packagist)

php-file-explorer

Code extracted from bmitch/churn-php

Usage

$fileFinder = new FileFinder(
    fileExtensions: ['php'], 
    filesToIgnore: [], 
    basePath: __DIR__,
);

$files = $fileFinder->getFiles(paths: [
   __DIR__,
]);

foreach ($files as $file) {
   $file->getFullPath();
   $file->getDisplayPath();
}

Tests

make test
make coverage