PHPackages                             mehrdad-dadkhah/php-file-finder - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. mehrdad-dadkhah/php-file-finder

ActiveLibrary[File &amp; Storage](/categories/file-storage)

mehrdad-dadkhah/php-file-finder
===============================

simple package to search files and directories and return full path and related information

1.1.3(8y ago)16242GPL-3.0-onlyPHPPHP &gt;=7.0

Since Jan 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Mehrdad-Dadkhah/php-file-finder)[ Packagist](https://packagist.org/packages/mehrdad-dadkhah/php-file-finder)[ Docs](https://github.com/Mehrdad-Dadkhah/php-file-finder)[ RSS](/packages/mehrdad-dadkhah-php-file-finder/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

php-file-finder
===============

[](#php-file-finder)

[![Software License](https://camo.githubusercontent.com/e1514dd3f2095dbf68a0008ae62a631142953ad2e86aa94c504343f2c2c191da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c2d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/c94d70038ba144945cc7b24bd0138e6738d7cee5945b141a94d333ffff3b44b0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4d6568726461642d4461646b6861682f7068702d66696c652d66696e6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mehrdad-dadkhah/php-file-finder)

simple package to find file or directory full path and related information in php

Installation
------------

[](#installation)

```
composer require mehrdad-dadkhah/php-file-finder

```

Usage
-----

[](#usage)

```
use MehrdadDadkhah\File\Finder;

$finder = new Finder();
```

can change finder, default is `find` and can change it to `locate`

```
$finder->setFinder('locate');
```

find with filename and search all directories:

```
$finder->findFile('myFile.mp4', '/');
```

find all video(mp4) files in /home dir:

```
$finder->findFile('*.mp4', '/home');
```

find a file with it's related path:

```
$finder->findFile('related/path/to/files/myFile.mp4');
```

find files and only return file path without extra information:

```
$finder->findFile('myFile.mp4', '/', false);
```

find directory with name test:

```
$finder->findDirectoryPath('test', '/');
```

License
-------

[](#license)

hls-video-generater is licensed under the [GPLv3 License](http://opensource.org/licenses/GPL).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Total

5

Last Release

3020d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3860685?v=4)[Mehrdad-Dadkhah](/maintainers/Mehrdad-Dadkhah)[@Mehrdad-Dadkhah](https://github.com/Mehrdad-Dadkhah)

---

Top Contributors

[![Mehrdad-Dadkhah](https://avatars.githubusercontent.com/u/3860685?v=4)](https://github.com/Mehrdad-Dadkhah "Mehrdad-Dadkhah (6 commits)")

---

Tags

filefileinfofilesystempathpathfinderphpsearchfilefinderfile info

### Embed Badge

![Health badge](/badges/mehrdad-dadkhah-php-file-finder/health.svg)

```
[![Health](https://phpackages.com/badges/mehrdad-dadkhah-php-file-finder/health.svg)](https://phpackages.com/packages/mehrdad-dadkhah-php-file-finder)
```

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[league/flysystem-memory

In-memory filesystem adapter for Flysystem.

8533.6M194](/packages/league-flysystem-memory)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6129.6M91](/packages/league-flysystem-sftp-v3)[league/flysystem-async-aws-s3

AsyncAws S3 filesystem adapter for Flysystem.

2610.5M31](/packages/league-flysystem-async-aws-s3)[edsdk/flmngr-server-php

Flmngr file manager PHP backend

20279.5k3](/packages/edsdk-flmngr-server-php)[samsonasik/array-lookup

A fast lookup library that help you verify and search array and Traversable data

2863.0k2](/packages/samsonasik-array-lookup)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
