PHP code example of jocolopes / filefilter

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

    

jocolopes / filefilter example snippets


$fs = new Jocolopes\Filefilter();

print_r($fs->scan('directory/**/target/*.js'));
print_r($fs->scan('directory/**/target/**/*.js'));
print_r($fs->scan('directory/**/*.js'));
print_r($fs->scan('directory/**/example/**/*.js'));