https://github.com/zanysoft/laravel-responsive-filemanager
Laravel responsive file manager
https://github.com/zanysoft/laravel-responsive-filemanager
file-manager laravel laravel-file-manager laravel-filemanager responsive-filemanager
Last synced: 3 days ago
JSON representation
Laravel responsive file manager
- Host: GitHub
- URL: https://github.com/zanysoft/laravel-responsive-filemanager
- Owner: zanysoft
- License: mit
- Created: 2021-10-26T11:25:57.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-18T11:18:57.000Z (4 months ago)
- Last Synced: 2025-06-06T00:43:13.273Z (25 days ago)
- Topics: file-manager, laravel, laravel-file-manager, laravel-filemanager, responsive-filemanager
- Language: PHP
- Homepage: https://zanysoft.github.io/laravel-responsive-filemanager/
- Size: 947 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel-Responsive-FileManager
[](https://packagist.org/packages/zanysoft/laravel-responsive-filemanager)
[](https://github.com/zanysoft/laravel-responsive-filemanager/blob/master/LICENSE)
[](https://creativecommons.org/licenses/by-nc/3.0/)
[](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)
[](https://github.com/zanysoft/laravel-responsive-filemanager/tags)This software includes a modified version of [Responsive File Manager](https://github.com/trippo/ResponsiveFilemanager) *see [official website](https://responsivefilemanager.com/)*
## *Responsive File Manager (RFM) is licenced under CC BY-NC 3.0 which means software can't be redistributed for a commercial use.*

**If you wan't to use it for comercial purpose take a look on [the author (Alberto Peripolli
) website](https://responsivefilemanager.com/#download-section)**This repo is under MIT Licence except parts where antoher licence is mentioned in file.
The Laravel plugin code part here is under **MIT Licence**.
*The RFM author delivers a commercial version of his code (a modified ```include.js```). You will need to modify this file if you use CSRF check on your laravel app by adding ```_token: jQuery('meta[name="csrf-token"]').attr('content')``` on ajax calls. You can use [www.diffchecker.com](https://www.diffchecker.com) to check modifications you will have to apply to your ```include.commercial.js``` file. I can't deliver myself a licence to use RFM for commercial purpose*
__**If you have some corrections, recommendations or anything else to say please let me know.**__
**__[Read Responsive File Manager Documentation](https://responsivefilemanager.com/index.php#documentation-section)__**
___
## **How to Install ?**
### *Install in your project*
composer require zanysoft/laravel-responsive-filemanager
Now there is a new configuration file ```rfm.php```
Install in ```config/app.php```
'providers' => [
/*
* Laravel Framework Service Providers...
*/
...
// Responsive File Manager
ZanySoft\ResponsiveFileManager\FileManagerServiceProvider::class
],In ```app/Http/Kernel.php``` need to use StartSession, can also use and is recommended CSRF Token
protected $middlewareGroups = [
...
'web' => [
...
\Illuminate\Session\Middleware\StartSession::class,
// Responsive File Manager supports CSRF Token usage
\App\Http\Middleware\VerifyCsrfToken::class
]
...
];then do
php artisan vendor:publish --provider="ZanySoft\ResponsiveFileManager\FileManagerServiceProvider"
Generate private key for url identification
php artisan rfm:generate
All configs included to work out of the box.
Files are meant to be stored in public folder.**Don't forget to set upload dir in config file**
$upload_dir = 'media/';
$thumbs_upload_dir = 'thumbs/'; //this will create inside upload directory
**Set route prefix in config file**'route_prefix' => 'filemanager/',
//or
'route_prefix' => 'admin/filemanager/',
**Set middleware in config file for security purpose**'middleware' => 'auth', //defaualt is web
___### Use as StandAlone
*Use helpers to write filemanager url*
Open RFM
// OR
Open RFM
// OR
Open RFMsee ```USE AS STAND-ALONE FILE MANAGER``` in Responsible [File Manager Doc](https://responsivefilemanager.com/index.php#documentation-section)
___
### Include in TinyMCE or CKEDITOR
#### *Include JS*
- **For CKEditor**
__**Replace #MYTEXTAREAJS with your textarea input**__
$(document).ready(function() {
if($("#MYTEXTAREAID").length) {
CKEDITOR.replace( 'postBody', {
filebrowserBrowseUrl : '@filemanager_get_resource(dialog.php)?akey=@filemanager_get_key()&type=2&editor=ckeditor&fldr=',
filebrowserUploadUrl : '@filemanager_get_resource(dialog.php)?akey=@filemanager_get_key()&type=2&editor=ckeditor&fldr=',
filebrowserImageBrowseUrl : '@filemanager_get_resource(dialog.php)?akey=@filemanager_get_key()&type=1&editor=ckeditor&fldr=',
language : '<?php App::getLocale() ?>'
});
}
})
- **For TinyMCE**
with tinymce parameters
$(document).ready(() => {
$('textarea').first().tinymce({
script_url : '/tinymce/tinymce.min.js',
width: 680,height: 300,
plugins: [
"advlist autolink link image lists charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars insertdatetime media nonbreaking",
"table contextmenu directionality emoticons paste textcolor filemanager code"
],
toolbar1: "undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | styleselect",
toolbar2: "| responsivefilemanager | link unlink anchor | image media | forecolor backcolor | print preview code ",
image_advtab: true ,
filemanager_access_key: '@filemanager_get_key()',
filemanager_relative_url: true,
filemanager_sort_by: '',
filemanager_descending: '',
filemanager_basefolder: '',
filemanager_subfolder: '',
filemanager_crossdomain: '',
external_filemanager_path: '@external_filemanager_path()',
filemanager_title:"Responsive Filemanager" ,
external_plugins: { "filemanager" : "/vendor/responsivefilemanager/plugin.min.js"}
});
});**To make private folder use .htaccess with ```Deny from all```**