zing/flysystem-oss
最新稳定版本:3.2.1
Composer 安装命令:
composer require zing/flysystem-oss
包简介
OSS filesystem adapter for Flysystem.
README 文档
README
Requires
Version Information
| Version | Flysystem | PHP Version | Status |
|---|---|---|---|
| 3.x | 3.10+ | >= 8.0 | Active support 🚀 |
| 2.x | 2.x - 3.x | >= 7.2 | Active support |
| 1.x | 1.x | >= 7.2 | Active support |
Require Flysystem OSS using Composer:
composer require zing/flysystem-oss
Usage
use League\Flysystem\Filesystem; use OSS\OssClient; use Zing\Flysystem\Oss\OssAdapter; $prefix = ''; $config = [ 'provider' => new StaticCredentialsProvider('aW52YWxpZC1rZXk=', 'aW52YWxpZC1zZWNyZXQ='), 'bucket' => 'test', 'endpoint' => 'oss-cn-shanghai.aliyuncs.com', ]; $config['options'] = [ 'url' => '', 'endpoint' => $config['endpoint'], 'bucket_endpoint' => '', 'temporary_url' => '', ]; $client = new OssClient($config); $adapter = new OssAdapter($client, $config['bucket'], $prefix, null, null, $config['options']); $flysystem = new Filesystem($adapter);
Integration
- Laravel: zing/laravel-flysystem-oss
Reference
License
Flysystem OSS is an open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 18.87k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-01-19