PHPackages                             sweet1s/moonshine-filemanager - 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. [Admin Panels](/categories/admin)
4. /
5. sweet1s/moonshine-filemanager

ActiveLibrary[Admin Panels](/categories/admin)

sweet1s/moonshine-filemanager
=============================

Moonshine File Manager is a Laravel package that provides a simple way to manage files and folders in your Laravel application.

1.1.0(1y ago)121.2k↓50%2[3 issues](https://github.com/SWEET1S/moonshine-filemanager/issues)MITPHPPHP ^8.2|^8.3|^8.4

Since Feb 27Pushed 1y ago2 watchersCompare

[ Source](https://github.com/SWEET1S/moonshine-filemanager)[ Packagist](https://packagist.org/packages/sweet1s/moonshine-filemanager)[ Docs](https://moonshine-laravel.com/)[ RSS](/packages/sweet1s-moonshine-filemanager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (7)Versions (5)Used By (0)

MoonShine FileManager
---------------------

[](#moonshine-filemanager)

### Description

[](#description)

This package is an extension exclusively designed for the [MoonShine Admin Panel](https://github.com/moonshine-software/moonshine), building upon the functionality of the [UniSharp Laravel FileManager](https://github.com/UniSharp/laravel-filemanager) package. This package introduces a user-friendly interface for managing files and images, allowing admins to easily upload, organize, and handle media directly within the admin panel.

[![Total Downloads](https://camo.githubusercontent.com/597426f1d94d27fe0fcaa3c30c84aaf615527443c23c5fc2b3a5f68410d1899b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f737765657431732f6d6f6f6e7368696e652d66696c656d616e61676572)](https://packagist.org/packages/sweet1s/moonshine-filemanager)[![Latest Stable Version](https://camo.githubusercontent.com/270c575c4ded5e1944dfbbf6b200d017607c39a3e00fdb4e7a1583ab571d1c5b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737765657431732f6d6f6f6e7368696e652d66696c656d616e61676572)](https://packagist.org/packages/sweet1s/moonshine-filemanager)[![License](https://camo.githubusercontent.com/00f6d18fd231984536a62130081bc92e79fea6885b00ea6b59d7c7d6e4c5de52/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f737765657431732f6d6f6f6e7368696e652d66696c656d616e61676572)](https://packagist.org/packages/sweet1s/moonshine-filemanager)

 [![Laravel 10+](https://camo.githubusercontent.com/67ff25342790de50f83c6313acb28d5fdd1d7931a63bf481f21ea769b7b1ca1c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31302b2d4646324432303f7374796c653d666f722d7468652d6261646765266c6f676f3d6c61726176656c)](https://laravel.com) [![PHP 8+](https://camo.githubusercontent.com/e0f3f4481fef29b2320c4adf7fa7b4da977fd87bb8b642832ebe759cd73040bf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312b2d3737374242343f7374796c653d666f722d7468652d6261646765266c6f676f3d706870)](https://laravel.com) [![Moonshine Admin Panel](https://camo.githubusercontent.com/a5a1cb11e165694625116bd92055cd7981c92d07025b0dff61de13f2cbf1af4d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6f6f6e7368696e652d322e302b2d3142323533423f7374796c653d666f722d7468652d6261646765)](https://github.com/moonshine-software/moonshine)

---

> ### Requirements
>
> [](#requirements)
>
> Moonshine: v2.0+
>
> UniSharp laravel-filemanager: v2.7+

---

Features
--------

[](#features)

- Intuitive File Management: Provides a simple and intuitive UI for managing files and images.
- Seamless Integration with Moonshine Admin Panel: Designed to integrate flawlessly with the Moonshine Admin Panel.
- Image Upload and Organization: Facilitates easy upload and organization of images.
- File Handling: Supports various file operations such as upload, delete, and rename.

---

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

[](#installation)

1. Install the [UniSharp Laravel FileManager](https://github.com/UniSharp/laravel-filemanager) package and follow the instructions in the [documentation](https://unisharp.github.io/laravel-filemanager/installation) to set up the package correctly.
2. Install the package via composer:

```
composer require sweet1s/moonshine-filemanager
```

---

Usage
-----

[](#usage)

1. For Resource, add the following: **(In the screenshot you can see methods that can be used for File Manager, other methods that come from Field *File* do not work.)**

```
// ...
use Sweet1s\MoonshineFileManager\FileManager;
use Sweet1s\MoonshineFileManager\FileManagerTypeEnum;

class PostResource extends ModelResource
{
    public function fields(): array
    {
        return [
                Block::make('Contact information', [
                    // ...
                    FileManager::make('Image', 'images')
                        ->typeOfFileManager(FileManagerTypeEnum::File) // By default is FileManagerTypeEnum::Image
                        ->title('Media Manager') // By default, is 'File Manager'
                        ->allowedExtensions(['pdf', 'doc', 'txt']) // By default, all extensions are allowed
                        ->removable() // By default is false
            ]),
        ];
    }
}
```

2. All fields to be used as filemanager must be under the cast collection

```
protected $casts = [ 'images' => 'collection', ];

//or

protected function casts(): array
{
    return [
        'images' => 'collection',
    ];
}
```

---

#### *How does it look in the Admin Panel ?*

[](#how-does-it-look-in-the-admin-panel-)

[![How does it look in the Admin Panel](./.docs/images/how-look.jpg)](./.docs/images/how-look.jpg)[![How does it look in the Admin Panel Opened](./.docs/images/how-look-opened.jpg)](./.docs/images/how-look-opened.jpg)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~102 days

Total

4

Last Release

498d ago

PHP version history (2 changes)1.0.0PHP ^8.1|^8.2|^8.3

1.1.0PHP ^8.2|^8.3|^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/00214a048c8578a710f7c782716c0193eff474bd7c65118605a7a4a720d6f678?d=identicon)[SWEET1S](/maintainers/SWEET1S)

---

Top Contributors

[![SWEET1S](https://avatars.githubusercontent.com/u/84906111?v=4)](https://github.com/SWEET1S "SWEET1S (10 commits)")[![forest-lynx](https://avatars.githubusercontent.com/u/16956348?v=4)](https://github.com/forest-lynx "forest-lynx (1 commits)")[![JeRabix](https://avatars.githubusercontent.com/u/46298617?v=4)](https://github.com/JeRabix "JeRabix (1 commits)")

---

Tags

adminadmin-panelfile-managerguilaravellaravel-packagemoonshinephpsweet1slaravelfilemanagermoonshinemedialibrary

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sweet1s-moonshine-filemanager/health.svg)

```
[![Health](https://phpackages.com/badges/sweet1s-moonshine-filemanager/health.svg)](https://phpackages.com/packages/sweet1s-moonshine-filemanager)
```

###  Alternatives

[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[lara-zeus/tartarus

simple multi tenants

112.6k](/packages/lara-zeus-tartarus)

PHPackages © 2026

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