PHPackages                             muharihar/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. muharihar/file-finder

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

muharihar/file-finder
=====================

Laravel Local File Finder Package

0.1.2(7y ago)3291Apache-2.0PHPPHP &gt;=7.0.0

Since Sep 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/muharihar/FileFinder)[ Packagist](https://packagist.org/packages/muharihar/file-finder)[ RSS](/packages/muharihar-file-finder/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Laravel Local File Finder Package
=================================

[](#laravel-local-file-finder-package)

Laravel Local File Finder Package is a simple laravel package that allow finding a file by CONTENT (currently only for .txt file).

### Online Demo:

[](#online-demo)

- [Laravel File Finder Online Demo](https://laravel-file-finder.mhs.web.id/file-finder/api/docs)

Available Features:
-------------------

[](#available-features)

- List default storage directories and files.
- Search files and directories By Name.
- Search files by Content.

REST API Features
-----------------

[](#rest-api-features)

- \[Swagger UI\] ()

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

[](#installation)

- Create Laravel Project

```
$ composer create-project --prefer-dist laravel/laravel laravel_file_finder_5.6_test "5.6.*"
```

- Add FileFinder Package

```
$ cd laravel_file_finder_5.6_test
$ composer require muharihar/file-finder
```

- Publish Assets and Default Data Samples

```
$ php artisan vendor:publish --tag=public --force
```

- Add FileFinder Service Provider to laravel application config (config/app.php)

```
/*
* Package Service Providers...
*/

Muharihar\FileFinder\ServiceProviders\FileFinderServiceProvider::class,
```

- Running Application

```
$ php artisan serve
```

- Open Swagger UI for testing the features:

 [![](docs/images/file-finder-swagger-ui-display.png)](docs/images/file-finder-swagger-ui-display.png)

### Test via CURL

[](#test-via-curl)

#### 1. List default storage directories and files.

[](#1-list-default-storage-directories-and-files)

Command:

```
$ curl -v -X GET "http://localhost:8000/file-finder/api/v1.0/default/list-dir-and-files" -H "accept: application/json"
```

Sample Result: [sampleResponse](docs/samples/listDirAndFilesResponse.json)

#### 2. Search files and directories By Name.

[](#2-search-files-and-directories-by-name)

Command:

```
$ curl -X GET "http://localhost:8000/file-finder/api/v1.0/search/by-name?s=b" -H "accept: application/json"
```

Sample Result:

```
{
  "searchKey": "b",
  "results": [
    {
      "idx": 2,
      "isDir": true,
      "shortPath": "public/file-finder/folder_animals/folder_birds",
      "extension": "",
      "fileSize": 0,
      "parentPath": "public/file-finder/folder_animals"
    },
    {
      "idx": 12,
      "isDir": true,
      "shortPath": "public/file-finder/folder_fruits/folder_berries",
      "extension": "",
      "fileSize": 0,
      "parentPath": "public/file-finder/folder_fruits"
    },
    {
      "idx": 13,
      "isDir": false,
      "shortPath": "public/file-finder/folder_fruits/folder_berries/file_berries_list.txt",
      "extension": "txt",
      "fileSize": 44,
      "parentPath": "public/file-finder/folder_fruits/folder_berries"
    },
    {
      "idx": 26,
      "isDir": false,
      "shortPath": "public/file-finder/folder_geolocations/folder_cities/file_bg.txt",
      "extension": "txt",
      "fileSize": 633,
      "parentPath": "public/file-finder/folder_geolocations/folder_cities"
    }
  ],
  "resultCount": 4
}
```

#### 3. Search files by Content.

[](#3-search-files-by-content)

Command:

```
$ curl -X GET "http://localhost:8000/file-finder/api/v1.0/search/by-content?s=Obama" -H "accept: application/json"
```

Sample Result:

```
{
  "searchKey": "Obama",
  "results": [
    {
      "idx": 41,
      "isDir": false,
      "shortPath": "public/file-finder/folder_peoples/folder_presidents/file_us.txt",
      "extension": "txt",
      "fileSize": 6713,
      "parentPath": "public/file-finder/folder_peoples/folder_presidents",
      "info": {
        "firstPos": 6580,
        "firstStr": "...Obama,http://en.wikipedia.org/wiki/Barack_Obama,20"
      }
    }
  ],
  "resultCount": 1
}
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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 ~8 days

Total

3

Last Release

2816d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1227797?v=4)[Muhammad Hari](/maintainers/muharihar)[@muharihar](https://github.com/muharihar)

---

Top Contributors

[![muharihar](https://avatars.githubusercontent.com/u/1227797?v=4)](https://github.com/muharihar "muharihar (15 commits)")

---

Tags

file-finderlaravel-file-finder

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/muharihar-file-finder/health.svg)

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

###  Alternatives

[rahulhaque/laravel-filepond

Use FilePond the Laravel way

264127.9k2](/packages/rahulhaque-laravel-filepond)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135212.4k7](/packages/statamic-rad-pack-runway)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21313.7k3](/packages/ecotone-laravel)[slimani/filament-media-manager

A media manager plugin for Filament.

126.9k](/packages/slimani-filament-media-manager)

PHPackages © 2026

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