infinety-es/filemanager
Composer 安装命令:
composer require infinety-es/filemanager
包简介
Laravel 5 Filemanager
关键字:
README 文档
README
Custom file manager for Laravel 5
Changelog
v2.3 - Autoload provider for Laravel 5.5
v2.1 - Now, you can compress images (jpg or png). Automatic for uploads and rightMenu option also.
v2 - You can use with your original Laravel 5 files. Multiple fixes and addons.
Installation
First require this package:
composer require infinety-es/filemanager
Add the provider on ‘app.php’:
Infinety\FileManager\FileManagerServiceProvider::class,
Aliase to Zipper is automatic loaded from `FileManagerServiceProvider (It's required to download folders in zip format):
Publish config, views and public files:
php artisan vendor:publish --provider="Infinety\FileManager\FileManagerServiceProvider"
Then you need to modify options on new file on options filemanager.php
<?php return array( /* |-------------------------------------------------------------------------- | Path home for your file manager |-------------------------------------------------------------------------- | */ 'homePath' => public_path(), /* |-------------------------------------------------------------------------- | Default routes for your file manager. You can modify here: |-------------------------------------------------------------------------- | */ 'defaultRoute' => 'admin/filemanager', /* |-------------------------------------------------------------------------- | User middleware. You can use or single string or array based |-------------------------------------------------------------------------- | */ 'middleware' => ['web', 'auth'], /* |-------------------------------------------------------------------------- | Use this options if you want to sanitize file and folder names |-------------------------------------------------------------------------- | */ 'validName' => true, /* |-------------------------------------------------------------------------- | Files You don't want to show on File Manager |-------------------------------------------------------------------------- | */ 'exceptFiles' => array( 'robots.txt', 'index.php', '.DS_Store', '.Thumbs.db'), /* |-------------------------------------------------------------------------- | Folders names you don't want to show on File Manager |-------------------------------------------------------------------------- | */ 'exceptFolders' => array( 'vendor', 'thumbs', 'filemanager_assets'), /* |-------------------------------------------------------------------------- | Extensions you don't want to show on File Manager |-------------------------------------------------------------------------- | */ 'exceptExtensions' => array( 'php', 'htaccess', 'gitignore'), /* |-------------------------------------------------------------------------- | Append tu url. For if you use a custom service to load assets by url. Example here: http://stackoverflow.com/a/36351219/4042595 |-------------------------------------------------------------------------- | */ 'appendUrl' => null, /* |-------------------------------------------------------------------------- | If optimizeImages is set tu true, action to optimize images will be available under contextualMenu. | Images will be also optimized by method upload | False by default |-------------------------------------------------------------------------- | */ 'optimizeImages' => false, /* |-------------------------------------------------------------------------- | Path for pngquant. This is used to auto optimize png files. If set to null, FileManager will not optimize png files. | You must install pngquant in your host. https://pngquant.org | Must have optimizeImages option set to true | Null by default |-------------------------------------------------------------------------- | */ 'pngquantPath' => null, /* |-------------------------------------------------------------------------- | Path for pngquant. This is used to auto optimize jpg files. If set to null, FileManager will not optimize jpg files. | You must install JPEG Archive in your host. https://github.com/danielgtaylor/jpeg-archive | Must have optimizeImages option set to true | Null by default |-------------------------------------------------------------------------- | */ 'jpegRecompressPath' => null, );
You can see your new FileManager. Default to: admin/filemanager.
Dialog (Modal) version
FileManager has also a dialog or modal version.
How to use dialog as file selector
More Screenshots
ToDo
- Better docs
Thanks
- Daniel Morales: dmuploader
- SWIS: contextMenu
- Nils Plaschke: Chumper/Zipper
License: MIT
Contributing 
infinety-es/filemanager 适用场景与选型建议
infinety-es/filemanager 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 2.22k 次下载、GitHub Stars 达 32, 最近一次更新时间为 2016 年 04 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「file」 「manager」 「laravel 5」 「infinety」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 infinety-es/filemanager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 infinety-es/filemanager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 infinety-es/filemanager 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The file manager intended for using Laravel with CKEditor / TinyMCE / Colorbox
Laravel Media Popup to upload/view the files
PMVC Plugin for File information
Mapper for accessing resources in KWCMS
Text file manipulation
KCFinder web file manager
统计信息
- 总下载量: 2.22k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 33
- 点击次数: 4
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-13




