chilldev/file-manager-bundle
最新稳定版本:0.1.3
Composer 安装命令:
composer require chilldev/file-manager-bundle
包简介
File manager bundle for Symfony2.
README 文档
README
ChillDevFileManagerBundle is a Symfony2 bundle that provides file management features from your web application.
Installation
This bundle is provided as Composer package. To install it simply add following dependency definition to your composer.json file:
"chilldev/file-manager-bundle": "dev-master"
Replace dev-master with different constraint if you want to use specific version.
If you are using modern version of Symfony2, use dev-develop version instead of dev-master. (But this version isn't tested properly yet)
Note: This bundle requires PHP 5.4.
Note: You also need default templating engine installed and make sure all required bundles are also loaded in your application. See installation instructions for details about that.
Configuration
In order to use this bundle, load it in your kernel:
<?php use ChillDev\Bundle\FileManagerBundle\ChillDevFileManagerBundle; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { public function registerBundles() { $bundles = [ new ChillDevFileManagerBundle(), ]; } }
Include bundle routes:
ChillDevFileManagerBundle: resource: "@ChillDevFileManagerBundle/Controller/" type: "annotation" prefix: "/filemanager"
And then configure your disks:
chilldev_filemanager: disks: disk_id: label: "Your filesystem" source: "/var/www/"
See configuration options for details.
Usage
Frontend
In general, ChillDevFileManagerBundle is end-user ready (or at least should be) component. However there can be some issues related to frontend presentation that you can be interested in (mainly JavaScript-related). For list of things you need to know to get best experience of this bundle UI see usage documentation.
Actions handlers
Another aspect which you may be interested in is implementing own file actions. You can easily extend ChillDevFileManagerBundle to allow additional file actions (even filetype-specific). You can bind your own action handler to specific MIME type by registring your instances of HandlerInterface interface:
class MyHandler implements HandlerInterface { public function getLabel() { return 'My action'; } public function supports($mimeType) { return preg_match('#^image/#', $mimeType) > 0; } public function handle(Request $request, Disk $disk, $path) { // handle action request } }
You can read more detailed info here.
Extras
As a bonus, you can integrate ChillDevFileManagerBundle with SonataAdminBundle. You can read about how to do that in this section.
Resources
- Source documentation
- GitHub page with API documentation
- Issues tracker
- Packagist package
- Chillout Development @ GitHub
- Chillout Development @ Facebook
- Post on Wrzasq.pl
Contributing
Do you want to help improving this project? Simply fork it and post a pull request. You can do everything on your own, you don't need to ask if you can, just do all the awesome things you want!
This project is published under MIT license.
Authors
ChillDevFileManagerBundle is brought to you by Chillout Development.
List of contributors:
chilldev/file-manager-bundle 适用场景与选型建议
chilldev/file-manager-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 450 次下载、GitHub Stars 达 9, 最近一次更新时间为 2012 年 12 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「filesystem」 「Symfony2」 「file manager」 「files」 「chilldev」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 chilldev/file-manager-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 chilldev/file-manager-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 chilldev/file-manager-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A SDK for working with B2 cloud storage.
A PHP class providing static methods for reading, writing, copying, moving, and deleting files and directories, MIME type detection, image size detection, and file permission management
The file manager intended for using Laravel with CKEditor / TinyMCE / Colorbox
The flysystem adapter for yandex disk rest api.
A sleek PHP wrapper around rclone with Laravel-style fluent API syntax
Laravel Media Popup to upload/view the files
统计信息
- 总下载量: 450
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-12-14