Skip to content
FilterIterator implementation that filters files based on a list of suffixes, prefixes, and other exclusion criteria.
Pull request Compare This branch is 7 commits behind sebastianbergmann:1.2.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.




File_Iterator should be installed using the PEAR Installer. This installer is the backbone of PEAR, which provides a distribution system for PHP packages, and is shipped with every release of PHP since version 4.3.0.

The PEAR channel ( that is used to distribute File_Iterator needs to be registered with the local PEAR environment:

sb@ubuntu ~ % pear channel-discover
Adding Channel "" succeeded
Discovery of channel "" succeeded

This has to be done only once. Now the PEAR Installer can be used to install packages from the PHPUnit channel:

sb@vmware ~ % pear install phpunit/File_Iterator
downloading File_Iterator-1.1.1.tgz ...
Starting to download File_Iterator-1.1.1.tgz (3,173 bytes)
....done: 3,173 bytes
install ok: channel://

After the installation you can find the File_Iterator source files inside your local PEAR directory; the path is usually /usr/lib/php/File.

Something went wrong with that request. Please try again.