PHP code example of aklump / glob
1. Go to this page and download the library: Download aklump/glob 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/ */
aklump / glob example snippets
AKlump\Glob\Glob;
print_r(Glob::glob('src/**/*.php'));
$glob = new \AKlump\Glob\Glob();
$php = $glob('src/**/*.php');
// This second call reads the cache the first call built.
$md = $glob('docs/**/*.md');
\AKlump\Glob\Glob::match('src/Helpers/Cache.php', 'src/**/*.php'); // TRUE
\AKlump\Glob\Glob::match('/foo/lorem', '/*/bar'); // FALSE