gitmyhub

php-file-iterator

PHP ★ 7.5k updated 2d ago

FilterIterator implementation that filters files based on a list of suffixes, prefixes, and other exclusion criteria.

Small PHP library that scans directories and filters files by extension or prefix, mainly used as a dependency inside PHPUnit and other PHP testing tools.

PHPComposersetup: easycomplexity 2/5

This is a small PHP library that helps developers scan directories and filter files based on rules you define. You can tell it to only include files with certain endings (like ".php" or ".txt"), exclude files that start with specific prefixes, or skip files that match other criteria you set up.

It is mainly used as a helper inside testing tools, including PHPUnit, which is a widely used PHP testing framework. Most PHP developers encounter this library indirectly when running automated tests rather than using it directly in application code.

Installation is handled through Composer, the standard PHP package manager. You add it to your project with a single command. The README is short and covers only installation basics, so the full feature set is documented elsewhere in the package itself.

Where it fits