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

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

m2code/file-manager
===================

Flexible Laravel File Manager: upload, move, delete, thumbnail, blurhash, and more

v2.2.0(1mo ago)01.1kMITPHPPHP ^8.2CI failing

Since Jun 29Pushed 1mo agoCompare

[ Source](https://github.com/marijmokoginta/file-manager)[ Packagist](https://packagist.org/packages/m2code/file-manager)[ RSS](/packages/m2code-file-manager/feed)WikiDiscussions develop Synced 1w ago

READMEChangelog (5)Dependencies (29)Versions (13)Used By (0)

File Manager for Laravel
========================

[](#file-manager-for-laravel)

[![PHP](https://camo.githubusercontent.com/b5d4f7901c58ad1ddfff679966f426cc25a9354bab763846b9a7276c2feab4e0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d626c7565)](composer.json)[![Laravel](https://camo.githubusercontent.com/f37feb42a9e123d5072589b731a86cb0c79df6f5920cd224c58a18dbbc20568c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31305f2537435f31315f2537435f31325f2537435f31332d726564)](composer.json)[![Tests](https://camo.githubusercontent.com/0a5dd4690af4b1c7de6cf2c1dd11da45aab71e94f05585f0f2c1319dfec647d9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74657374732d3132325f70617373696e672d627269676874677265656e)](.)[![License](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](LICENSE)

A modular, clean-architecture Laravel package for file management — upload, process, store, and serve files across multiple drivers and file types.

---

Requirements
------------

[](#requirements)

- PHP 8.2+ / Laravel 10–13 / Imagick PHP extension / `intervention/image` v3

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

[](#installation)

```
composer require m2code/file-manager
php artisan vendor:publish --tag=config --provider="M2code\FileManager\FileManagerServiceProvider"
```

Quick Start
-----------

[](#quick-start)

```
use M2code\FileManager\Facades\FileManager;
use M2code\FileManager\Facades\FileUrl;
use M2code\FileManager\Application\Uploader\ImageUploader;

// Save any file (UploadedFile, base64, SVG string)
$result = FileManager::save($request->file('document'), 'uploads');

// Upload and process an image
$result = ImageUploader::make()
    ->blur()->optimize('avif')->watermark()
    ->upload($request->file('photo'), 'uploads');

$result->variants->get('original')?->path;
$result->blurhash;

// Upload with encryption (requires FILE_MANAGER_ENCRYPTION_ENABLED=true)
$result = ImageUploader::make()
    ->encrypted()
    ->upload($request->file('receipt'), 'invoices');

// Delete
FileManager::delete('uploads/old.png');
FileManager::deleteVariants($result->variants);

// URLs
$url = FileUrl::getUrl('uploads/photo.png');
$signed = FileUrl::getSignedUrl('uploads/photo.png', now()->addHour());
```

---

Documentation
-------------

[](#documentation)

### For Users

[](#for-users)

DocumentDescription[Getting Started](docs/client/getting-started.md)Installation, requirements, Imagick setup[Usage Guide](docs/client/usage.md)Facades, ImageUploader, FileMover, FileUrl, variants, deletion[HTTP Upload API](docs/client/http-api.md)Endpoints, authentication, request/response formats, configuration### For Developers

[](#for-developers)

DocumentDescription[AGENTS.md](AGENTS.md)Architecture conventions, DDD layers, code style, testing[PRD: Core Package](docs/prd/000-file-manager-core.md)Product vision, scope, roadmap[PRD: File Upload API](docs/prd/001-file-upload-api.md)Upload API feature requirements[ADR Index](docs/adr/)Architecture decision records[Development Skills](docs/development/skills/)Step-by-step guides for extending the package---

Testing
-------

[](#testing)

```
vendor/bin/phpunit -c phpunit.xml
```

---

License
-------

[](#license)

[MIT License](LICENSE) — Marij Mokoginta (M2code)

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance92

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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

Recently: every ~24 days

Total

10

Last Release

39d ago

Major Versions

v1.0.4 → v2.0.02026-04-06

### Community

Maintainers

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

---

Top Contributors

[![marijmokoginta](https://avatars.githubusercontent.com/u/73541847?v=4)](https://github.com/marijmokoginta "marijmokoginta (48 commits)")

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M322](/packages/laravel-ai)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.6M90](/packages/unisharp-laravel-filemanager)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

79227.1M228](/packages/laravel-mcp)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k161.4k2](/packages/mike-bronner-laravel-model-caching)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45844.8k1](/packages/pressbooks-pressbooks)

PHPackages © 2026

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