ak1r0/flysystem-filepathstrategy
Composer 安装命令:
composer require ak1r0/flysystem-filepathstrategy
包简介
Add a 'File path strategy' to Flysystem. Allow to set globaly how files must be stored.
关键字:
README 文档
README
Add a "File path strategy" to Flysystem. Allow to set globaly how files must be stored.
This is usefull to have the same archive/backup strategy whatever adapter you use.
Todos
- Units tests
- PHP 7 version
Install
composer require ak1r0/flysystem-filepathstrategy
Usage
$adapter = new \League\Flysystem\Adapter\Local(); $config = new \League\Flysystem\Config(); $strategy = new \Ak1r0\Flysystem\FilePathStrategy\YearMonthDayStrategy(); $filesystem = new \Ak1r0\Flysystem\Filesystem($adapter, $config, $strategy); // and then, basic usage. // For every 'write' method it will automatically add current "/year/month/day/" before your path
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: Unknown
- 更新时间: 2019-02-22