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

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

rdx/laravel-file-manager
========================

File manager API (no UI) for Laravel

112[1 issues](https://github.com/rudiedirkx/laravel-file-manager/issues)PHP

Since May 7Pushed 5y agoCompare

[ Source](https://github.com/rudiedirkx/laravel-file-manager)[ Packagist](https://packagist.org/packages/rdx/laravel-file-manager)[ RSS](/packages/rdx-laravel-file-manager/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel file manager
====================

[](#laravel-file-manager)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d8cef89b7cdc7b4306342016a16e4c8c94ddd3c2b3b4a4d4c8e34f5364d28ea2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f72756469656469726b782f6c61726176656c2d66696c652d6d616e616765722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/rudiedirkx/laravel-file-manager/?branch=master)

Keeps track of files and their usage. Works with an SQL backend by default.

Install
-------

[](#install)

1. Publish the config: ```
    php artisan vendor:publish

    ```
2. Optionally alter the config: ```
    config/filemanager.php

    ```
3. Install the schema (SQL provider, but you can make your own) ```
    php artisan migrate

    ```

    ^ This makes `files` and `files_usage` tables.
4. Add the service provider: ```
    rdx\filemanager\FileManagerServiceProvider::class

    ```
5. Inject the service: ```
    public function store(FileManager $files)

    ```

Save uploads
------------

[](#save-uploads)

`ManagedFile` records will be the primary source of files, not the file system.

```
$uploaded = $request['picture']; // Illuminate\Http\UploadedFile

$managed = $files->saveFile($uploaded); // in root dir
$managed = $files->saveFile($uploaded, 'some/sub/dir'); // in sub dir

```

File usage
----------

[](#file-usage)

File usage is useful to automatically delete orphaned files, or make sure used files aren't deleted.

Usage is kept by creating a `FileUsageContract`. There are 2 provided, but your app can make others.

To truly customize file usage, change the migration to add usage columns, AND create custom usage objects to reflect those columns.

```
// Generic FileUsage
$managed->addUsage(new FileUsage('type', 'more', 'specific', 'keys'));
// Save this file's usage for [type, more:specific:keys]

// Model bound ModelFileUsage
$managed->addUsage(new ModelFileUsage($user, 'picture'));
// Save this file's usage for [User, 14:picture]

```

Deleting files
--------------

[](#deleting-files)

@todo Can't delete used files @todo Auto delete unused files

To do
-----

[](#to-do)

- Deleting files
- Use Laravel's file system helpers
- Some kind of access control?

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/78549c1dc5c83ec0201c9afc66762c6d5bbf770291b12bae5a7a65350f950dba?d=identicon)[rudiedirkx](/maintainers/rudiedirkx)

---

Top Contributors

[![rudiedirkx](https://avatars.githubusercontent.com/u/168024?v=4)](https://github.com/rudiedirkx "rudiedirkx (14 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/rdx-laravel-file-manager/health.svg)](https://phpackages.com/packages/rdx-laravel-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)
