PackageTrack
Sign in Get early access

phpunit/php-file-iterator

FilterIterator implementation that filters files based on a list of suffixes.

7.0.1 951M downloads/mo #49 most downloaded on composer sebastianbergmann/php-file-iterator

What this package is like to depend on

Last release 13 days ago

10 Aug 2026

Ships fairly regularly

a new release about every 5 months

Most releases are documented

notes for 31 of 35 stable releases

Nothing withdrawn

no release was ever pulled

14 years old

35 releases · first in 2012

4 releases in the last 12 months

see the full history below

Release timeline

35 releases · Sep 2012 to Aug 2026
2013 2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 35
  1. 7.0.1 10 Aug 2026
    Release notes

    Changed

    • Hidden directories are now pruned from the traversal instead of being traversed only for their contents to be discarded
    • Filtering by prefix and suffix no longer resolves the real path of each file

    Fixed

    • Files in hidden directories were not filtered on Windows because only / was recognized as a directory separator
    • A "Globstar" pattern that begins with ** was not resolved correctly
    Open source →
    Release notes

    Changed

    • Hidden directories are now pruned from the traversal instead of being traversed only for their contents to be discarded
    • Filtering by prefix and suffix no longer resolves the real path of each file

    Fixed

    • Files in hidden directories were not filtered on Windows because only / was recognized as a directory separator
    • A "Globstar" pattern that begins with ** was not resolved correctly
    Open source →
  2. 7.0.0 06 Feb 2026
    Release notes

    Removed

    • This component is no longer supported on PHP 8.3
    Open source →
    Release notes

    Removed

    • This component is no longer supported on PHP 8.3
    Open source →
  3. 6.0.1 02 Feb 2026
    Release notes

    Fixed

    • #84: Factory drops directories during wildcard resolution
    Open source →
    Release notes

    Fixed

    • #84: Factory drops directories during wildcard resolution
    Open source →
  4. 6.0.0 07 Feb 2025
    Release notes

    Removed

    • This component is no longer supported on PHP 8.2
    Open source →
    Release notes

    Removed

    • This component is no longer supported on PHP 8.2
    Open source →
  5. 5.1.1 02 Feb 2026
    Release notes

    Fixed

    • #84: Factory drops directories during wildcard resolution
    Open source →
    Release notes

    Fixed

    • #84: Factory drops directories during wildcard resolution
    Open source →
  6. 5.1.0 27 Aug 2024
    Release notes

    Added

    • #83: Support for "Globstar" pattern
    Open source →
    Release notes

    Added

    • #83: Support for "Globstar" pattern
    Open source →
  7. 5.0.1 03 Jul 2024
    Release notes

    Changed

    • This project now uses PHPStan instead of Psalm for static analysis
    Open source →
    Release notes

    Changed

    • This project now uses PHPStan instead of Psalm for static analysis
    Open source →
  8. 5.0.0 02 Feb 2024
    Release notes

    Removed

    • This component is no longer supported on PHP 8.1
    Open source →
  9. 4.1.0 31 Aug 2023
    Release notes

    Added

    • #81: Accept array|string $paths in Facade::getFilesAsArray()
    Open source →
  10. 4.0.2 07 May 2023
    Release notes

    Fixed

    • #80: Ignore unresolvable symbolic link
    Open source →
  11. 4.0.1 10 Feb 2023
    Release notes

    Fixed

    • #67: Excluded directories are traversed unnecessarily
    Open source →
  12. 4.0.0 03 Feb 2023
    Release notes

    Removed

    • The optional $commonPath parameter of SebastianBergmann\FileIterator\Facade as well as the functionality it controlled has been removed
    • The SebastianBergmann\FileIterator\Factory and SebastianBergmann\FileIterator\Iterator classes are now marked @internal
    • This component is no longer supported on PHP 7.3, PHP 7.4 and PHP 8.0
    Open source →
  13. 3.0.6 02 Dec 2021
    Release notes

    Changed

    • #73: Micro performance improvements on parsing paths
    Open source →
  14. 3.0.5 28 Sep 2020
    Release notes

    Changed

    • Changed PHP version constraint in composer.json from ^7.3 || ^8.0 to >=7.3
    Open source →
  15. 3.0.4 11 Jul 2020
    Release notes

    Fixed

    • #67: TypeError in SebastianBergmann\FileIterator\Iterator::accept()
    Open source →
  16. 3.0.3 26 Jun 2020
    Release notes

    Added

    • This component is now supported on PHP 8
    Open source →
  17. 3.0.2 15 Jun 2020
    Release notes

    Changed

    • Tests etc. are now ignored for archive exports
    Open source →
  18. 3.0.1 18 Apr 2020
    Release notes

    Fixed

    • #64: Release tarball contains Composer PHAR
    Open source →
  19. 3.0.0 07 Feb 2020
    Release notes

    Removed

    • This component is no longer supported on PHP 7.1 and PHP 7.2
    Open source →
  20. 2.0.6 01 Mar 2024

    Nothing published for this version

  21. 2.0.5 02 Dec 2021
    Release notes

    Changed

    • #73: Micro performance improvements on parsing paths

    Fixed

    • #74: Document return type of SebastianBergmann\FileIterator\Iterator::accept() so that Symfony's DebugClassLoader does not trigger a deprecation warning
    Open source →
  22. 2.0.4 19 Jul 2021
    Release notes

    Changed

    • Added ReturnTypeWillChange attribute to SebastianBergmann\FileIterator\Iterator::accept() because the return type of \FilterIterator::accept() will change in PHP 8.1
    Open source →
  23. 2.0.3 30 Nov 2020
    Release notes

    Changed

    • Changed PHP version constraint in composer.json from ^7.1 to >=7.1
    Open source →
  24. 2.0.2 13 Sep 2018
    Release notes

    Fixed

    • #48: Excluding an array that contains false ends up excluding the current working directory
    Open source →
  25. 2.0.1 11 Jun 2018
    Release notes

    Fixed

    • #46: Regression with hidden parent directory
    Open source →
  26. 2.0.0 28 May 2018
    Release notes

    Fixed

    • #30: Exclude is not considered if it is a parent of the base path

    Changed

    • This component now uses namespaces

    Removed

    • This component is no longer supported on PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6, and PHP 7.0
    Open source →
  27. 1.4.5 27 Nov 2017
    Release notes

    Fixed

    • #37: Regression caused by fix for #30
    Open source →
  28. 1.4.4 27 Nov 2017
    Release notes

    Fixed

    • #30: Exclude is not considered if it is a parent of the base path
    Open source →
  29. 1.4.3 24 Nov 2017
    Release notes

    Fixed

    • #34: Factory should use canonical directory names
    Open source →
  30. 1.4.2 03 Oct 2016
    Release notes

    No changes

    Open source →
  31. 1.4.1 21 Jun 2015
    Release notes

    No changes

    Open source →
  32. 1.4.0 02 Apr 2015
    Release notes

    Added

    • #23: Added support for wildcards (glob) in exclude
    Open source →
  33. 1.3.4 10 Oct 2013

    Nothing published for this version

  34. 1.3.3 11 Oct 2012

    Nothing published for this version

  35. 1.3.2 22 Sep 2012

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive