Finder provides a fluent interface for finding files and directories.
Example usage:
// Find files
$finder = new Finder();
$files = $finder
->in('src')
->name('*.php')
->exclude('vendor')
->files();
foreach ($files as $file) {
echo $file->getPathname();
}
// Find directories
$directories = (new Finder())
->in('src')
->exclude('vendor')
->directories();
// Find both files and directories
$all = (new Finder())
->in('src')
->all();
Path utility class for cross-platform path manipulation.
Provides static methods for normalizing, joining, and working with filesystem paths in a platform-independent way.