PHPackages                             runsite/laravel-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. [File &amp; Storage](/categories/file-storage)
4. /
5. runsite/laravel-filemanager

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

runsite/laravel-filemanager
===========================

A file upload/editor intended for use with Laravel 5.3.\* and CKEditor

0.63(9y ago)0138MITPHP &gt;=5.5.0

Since Apr 3Compare

[ Source](https://github.com/Runsite/laravel-filemanager)[ Packagist](https://packagist.org/packages/runsite/laravel-filemanager)[ RSS](/packages/runsite-laravel-filemanager/feed)WikiDiscussions Synced today

READMEChangelog (2)Dependencies (3)Versions (20)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/50dfa14e2d5c14ec43c604bfb7c259e7e93ecffd03857b2c589bf74dd29cda5c/68747470733a2f2f706f7365722e707567782e6f72672f747361776c65722f6c61726176656c2d66696c656d616e616765722f762f737461626c65)](https://packagist.org/packages/tsawler/laravel-filemanager) [![Total Downloads](https://camo.githubusercontent.com/ba63594b57987c9490f40573cd88b94281083a247be9a655c128910f741fef86/68747470733a2f2f706f7365722e707567782e6f72672f747361776c65722f6c61726176656c2d66696c656d616e616765722f646f776e6c6f616473)](https://packagist.org/packages/tsawler/laravel-filemanager) [![Latest Unstable Version](https://camo.githubusercontent.com/e010923c732dce0643e0cf6bf7579f591e50cce1bc2e254d7b5a692b09fce442/68747470733a2f2f706f7365722e707567782e6f72672f747361776c65722f6c61726176656c2d66696c656d616e616765722f762f756e737461626c65)](https://packagist.org/packages/tsawler/laravel-filemanager) [![License](https://camo.githubusercontent.com/71d5d13a276286f1c68024e1a9b977fdae604b2733d4f3ac369f5ada2e6d6160/68747470733a2f2f706f7365722e707567782e6f72672f747361776c65722f6c61726176656c2d66696c656d616e616765722f6c6963656e7365)](https://packagist.org/packages/tsawler/laravel-filemanager)

laravel-filemanager
===================

[](#laravel-filemanager)

A file upload/editor intended for use with [Laravel 5.x](http://www.laravel.com/ "Title") and [CKEditor](http://ckeditor.com/).

Rationale
---------

[](#rationale)

There are other packages out there that offer much the same functionality, such as [KCFinder](http://kcfinder.sunhater.com/), but I found that integration with Laravel was a bit problematic, particularly when it comes to handling sessions and security.

This package is written specifically for Laravel 5, and will integrate seamlessly.

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

[](#requirements)

1. This package only supports Laravel 5.x.
2. Requires `"intervention/image": "2.*"`
3. Requres `"laravelcollective/html": "5.2.*"`
4. Requires PHP 5.5 or later

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

[](#installation)

1. Installation is done through composer and packagist. From within your project root directory, execute the following command:

    `composer require runsite/laravel-filemanager`
2. Add the following to the providers array in config/app.php:

    ```
    Runsite\Laravelfilemanager\LaravelFilemanagerServiceProvider::class,
    Intervention\Image\ImageServiceProvider::class,
    Collective\Html\HtmlServiceProvider::class,

    ```
3. Add this to the aliases section in config/app.php

    ```
    'Image'     => Intervention\Image\Facades\Image::class,
    'Form' => Collective\Html\FormFacade::class,
    'Html' => Collective\Html\HtmlFacade::class,

    ```
4. Publish the package's config file:

    `php artisan vendor:publish --tag=lfm_config`
5. Publish the package's public folder assets:

    `php artisan vendor:publish --tag=lfm_public`
6. If you want to customize the look &amp; feel, then publish the package's views:

    `php artisan vendor:publish --tag=lfm_views`
7. By default, the package will use its own routes. If you don't want to use those routes, change this entry in config/lfm.php to false:

    ```
        'use_package_routes' => true,
    ```

    You will, of course, have to set up your own routes.
8. If you don't want to use the default image/file directory or url, update the appropriate lines in config/lfm.php:

    ```
        'images_dir'         => 'public/vendor/laravel-filemanager/images/',
        'images_url'         => '/vendor/laravel-filemanager/images/',
        'files_dir'          => 'public/vendor/laravel-filemanager/files/',
        'files_url'          => '/vendor/laravel-filemanager/files/',
    ```
9. Ensure that the files &amp; images directories are writable by your web serber
10. In the view where you are using a CKEditor instance, use the file uploader by initializing the CKEditor instance as follows:

    ```

            CKEDITOR.replace( 'editor', {
                filebrowserImageBrowseUrl: '{{asset('/runsite/laravel-filemanager?type=Images')}}',
                filebrowserBrowseUrl: '{{asset('/runsite/laravel-filemanager?type=Files')}}'
            });

    ```

    Here, "editor" is the id of the textarea you are transforming to a CKEditor instance. Note that if you are using a custom route you will have to change `/runsite/laravel-filemanager?type=Images` to correspond to whatever route you have chosen. Be sure to include the `?type=Images` parameter.

Security
--------

[](#security)

It is important to note that if you use your own routes **you must protect your routes to Laravel-Filemanager in order to prevent unauthorized uploads to your server**. Fortunately, Laravel makes this very easy.

If, for example, you want to ensure that only logged in users have the ability to access the Laravel-Filemanager, simply wrap the routes in a group, perhaps like this:

```
Route::group(array('before' => 'auth'), function ()
{
    Route::get('/runsite/laravel-filemanager', '\Runsite\Laravelfilemanager\controllers\LfmController@show');
    Route::post('/runsite/laravel-filemanager/upload', '\Runsite\Laravelfilemanager\controllers\LfmController@upload');
    // list all lfm routes here...
});

```

This approach ensures that only authenticated users have access to the Laravel-Filemanager. If you are using Middleware or some other approach to enforce security, modify as needed.

License
-------

[](#license)

This package is released under the terms of the [MIT License](http://opensource.org/licenses/MIT).

The MIT License (MIT)

Copyright (c) 2015 Trevor Sawler, Runsite LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Recently: every ~155 days

Total

18

Last Release

3165d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/35397574?v=4)[Runsite](/maintainers/Runsite)[@Runsite](https://github.com/Runsite)

### Embed Badge

![Health badge](/badges/runsite-laravel-filemanager/health.svg)

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

###  Alternatives

[unisharp/laravel-filemanager

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

2.1k3.4M81](/packages/unisharp-laravel-filemanager)[illuminate/filesystem

The Illuminate Filesystem package.

15263.8M3.1k](/packages/illuminate-filesystem)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5452.7k](/packages/hasinhayder-tyro-dashboard)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1232.2k16](/packages/fleetbase-core-api)

PHPackages © 2026

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