gumphp/think-storage
最新稳定版本:v1.0.3
Composer 安装命令:
composer require gumphp/think-storage
包简介
The ThinkPHP6.1 Filesystem Package
README 文档
README
composer require gumphp/think-storage
配置
# config/filesystem.php return [ 'disks' => [ 's3' => [ 'type' => 'aws', 'root' => '/', 'credentials' => [ 'key' => env('S3_KEY', ''), 'secret' => env('S3_SECRET', ''), ], 'version' => env('S3_VERSION', 'latest'), 'region' => env('S3_REGION', 'us-west-2'), 'bucket' => env('S3_BUCKET', ''), ], ], ];
使用
use GumPHP\Storage\Facade\Storage; Storage::disk('s3')->put('/s3/remote/file.ext', file_get_contents('/path/yourfile.ext'));
统计信息
- 总下载量: 30
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2023-04-22