PHPackages                             wgirhad/filename-iterator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. wgirhad/filename-iterator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wgirhad/filename-iterator
=========================

Glob-like recursive file iterator

v1.0.0(3y ago)27MITPHPPHP ^8.1

Since Apr 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/wgirhad/filename-iterator)[ Packagist](https://packagist.org/packages/wgirhad/filename-iterator)[ RSS](/packages/wgirhad-filename-iterator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

filename-iterator
=================

[](#filename-iterator)

Glob-like recursive file iterator

[![Lint](https://github.com/wgirhad/filename-iterator/actions/workflows/lint.yml/badge.svg)](https://github.com/wgirhad/filename-iterator/actions/workflows/lint.yml/badge.svg)[![Test](https://github.com/wgirhad/filename-iterator/actions/workflows/test.yml/badge.svg)](https://github.com/wgirhad/filename-iterator/actions/workflows/test.yml/badge.svg)[![PHPStan](https://github.com/wgirhad/filename-iterator/actions/workflows/phpstan.yml/badge.svg)](https://github.com/wgirhad/filename-iterator/actions/workflows/phpstan.yml/badge.svg)

Usage Examples
--------------

[](#usage-examples)

Given the following file structure:

```
src/CoolestClass.php
src/SecondCoolest.php
tests/CoolestClassTest.php
tests/SecondCoolestTest.php
public/static/foo.png
public/static/bar.gif
public/static/images/bar.png
public/static/images/baz.png
public/static/images/fizz.jpeg
public/static/images/buzz.jpg
public/static/images/.peek/aboo.png

```

Listing all `.png` images on `public/static`

```
