PHPackages                             amedev/file-manager - 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. amedev/file-manager

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

amedev/file-manager
===================

Laravel File Manager Package

1.0.3(9mo ago)00MITPHPPHP ^8.0

Since Aug 4Pushed 9mo agoCompare

[ Source](https://github.com/aliNoori/file-manager)[ Packagist](https://packagist.org/packages/amedev/file-manager)[ RSS](/packages/amedev-file-manager/feed)WikiDiscussions master Synced 1mo ago

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

📂 FileManager
=============

[](#-filemanager)

**FileManager** is a Laravel package for polymorphic file management.
It provides a centralized API for uploading files and attaching them to any model, with support for multiple storage disks and dynamic model resolution.

---

📦 Installation
--------------

[](#-installation)

Install the package via Composer:

```
composer require amedev/file-manager

php artisan vendor:publish --tag=config
php artisan vendor:publish --tag=file-manager-migrations
php artisan vendor:publish --tag=file-manager-models

php artisan migrate

⚙️ Configuration
File: config/filemanager.php

return [

    /*
    |--------------------------------------------------------------------------
    | Default Storage Disk
    |--------------------------------------------------------------------------
    | Supported options: 'local', 'public', 'sftp'
    */
    'disk' => env('FILE_MANAGER_DISK', 'sftp'),

    /*
    |--------------------------------------------------------------------------
    | Default Upload Path
    |--------------------------------------------------------------------------
    */
    'default_path' => 'uploads',

    /*
    |--------------------------------------------------------------------------
    | Model Map
    |--------------------------------------------------------------------------
    | Maps model aliases to actual class names.
    | Used for polymorphic file attachment.
    */
    'model_map' => [
        'user' => \App\Models\User::class,
        // Add more models as needed
    ],
];

🧪 API Usage
Upload Files

POST /filemanager/upload
Content-Type: multipart/form-data

fields:
- model_type: user
- model_id: 5
- files[]: (multiple files)

[
  {
    "id": 1,
    "path": "uploads/user/files/abc123.png",
    "mime_type": "image/png",
    "size": 31200,
    "field": "files"
  },
  ...
]

🧬 Polymorphic Relation
The File model uses a morphTo relation:

public function fileable()
{
    return $this->morphTo();
}

🛠 Artisan Commands
Fix Model Namespace

php artisan file-manager:fix-model-namespace
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance57

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

Total

4

Last Release

287d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d81f95187a30a8f22509a652256197f89d1a90ed0a8f46a67107ca31ab1edece?d=identicon)[aliNoori](/maintainers/aliNoori)

---

Top Contributors

[![aliNoori](https://avatars.githubusercontent.com/u/23056374?v=4)](https://github.com/aliNoori "aliNoori (9 commits)")

### Embed Badge

![Health badge](/badges/amedev-file-manager/health.svg)

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

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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