gumphp/think-filesystem
最新稳定版本:v1.0.2
Composer 安装命令:
composer require gumphp/think-filesystem
包简介
README 文档
README
composer require gumphp/think-filesystem:dev-master
配置
# config/filesystem.php <?php return [ // 默认磁盘 'default' => env('filesystem.driver', 'aws'), // 磁盘列表 'disks' => [ // 更多的磁盘配置信息 'aws' => [ 'type' => 'aws', 'credentials' => [ 'key' => env('AWS.S3_KEY', ''), 'secret' => env('AWS.S3_SECRET', ''), ], 'version' => env('AWS.S3_VERSION', 'latest'), 'region' => env('AWS.S3_REGION', 'us-west-2'), 'bucket' => env('AWS.S3_BUCKET', ''), 'prefix' => '/', ], ], ];
使用
<?php namespace app\controller; use think\facade\Filesystem; class Index { public function index() { Filesystem::disk('aws')->put('/s3/remote/file.ext', file_get_contents('/path/yourfile.ext')); } }
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-01