barryvdh/elfinder-flysystem-driver
Composer 安装命令:
composer require barryvdh/elfinder-flysystem-driver
包简介
A Flysystem Driver for elFinder
README 文档
README
This package adds a VolumeDriver for elFinder to use Flysystem as a root in your system. You need to have elFinder 2.1 installed. You can download the source or nightlies from https://github.com/Studio-42/elFinder or use the Laravel version: https://github.com/barryvdh/laravel-elfinder
Require this package in your composer.json and update composer.
composer require barryvdh/elfinder-flysystem-driver
This will require Flysystem, but you might need additional adapters to fit your purpose. See https://github.com/thephpleague/flysystem for more information.
Basic usage
You can use the driver by setting the connector config to Flysystem.
'roots' => [
[
'driver' => 'Flysystem',
'path' => 'images',
'URL' => '/images',
'filesystem' => new Filesystem(new LocalAdapter('/path/to/public_html')),
'cache' => 'session', // 'session', 'memory' or false
],
[
'driver' => 'Flysystem',
'URL' => 'http://mydomain.com/content',
'alias' => 'Mydomain.com',
'filesystem' => new Filesystem(new FtpAdapter(
[
'host' => 'mydomain.com',
'username' => 'user',
'password' => '****',
'root' => '/domains/mydomain.com/public_html/content',
]
)),
],
[
'driver' => 'Flysystem',
'adapter' => new DropboxAdapter(new Dropbox\Client($token, $appName))
],
];
The path and URL options are optional. The path defaults to '/', the URL is only possible when the file is visible through an URL.
Displaying thumbnails/images through Glide
If you require Glide, you can show thumbnails for your images and generate secure urls.
[
'driver' => 'Flysystem',
'filesystem' => $fs,
'glideURL' => 'http://domain.com/glideserver',
'glideKey' => 'your-sign-key',
],
You can still use the tmbSize and tmbCrop options from the configuration options
This will require you to setup a basic server with Glide, see http://glide.thephpleague.com/ A signKey is optional, but can help secure your images against changing parameters.
Note: When securing image, you need to remove the
_parameter from your Request object:$request->query->remove('_');Otherwise the signature will fail. The_parameter is used to disable caching.
License
This elFinder driver is open-sourced software licensed under the MIT license
barryvdh/elfinder-flysystem-driver 适用场景与选型建议
barryvdh/elfinder-flysystem-driver 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.06M 次下载、GitHub Stars 达 186, 最近一次更新时间为 2015 年 01 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「filesystem」 「elfinder」 「Flysystem」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 barryvdh/elfinder-flysystem-driver 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 barryvdh/elfinder-flysystem-driver 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 barryvdh/elfinder-flysystem-driver 相关的其它包
同方向 / 同关键字的高下载量 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
Backblaze B2 Cloud Storage for Laravel 5. Original by Paul Olthof (@hpolthof) continued by @bringyourownideas
Virtual Filesystem Storage Adapter for Laravel
The flysystem adapter for yandex disk rest api.
A sleek PHP wrapper around rclone with Laravel-style fluent API syntax
统计信息
- 总下载量: 5.06M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 186
- 点击次数: 24
- 依赖项目数: 37
- 推荐数: 11
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-23