Download the PHP package szwtdl/storage without Composer
On this page you can find all versions of the php package szwtdl/storage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package storage
对象存储
统一封装阿里云 OSS、腾讯云 COS、七牛云 Kodo,所有驱动都实现 Szwtdl\Storage\Service\IService。
安装
基础配置
统一接口
返回结构
存储桶列表 listBuckets
对象列表 listObj
创建/删除存储桶
上传结果 upload
删除结果 delete
下载结果 download
临时凭证 getTemporaryCredentials
接口示例
1. 创建服务实例
2. 获取存储桶列表
2.1 获取临时凭证
阿里云 STS:
腾讯云 STS:
七牛上传 Token:
如果你已经从业务侧拿到了临时凭证,也可以直接透传:
3. 创建存储桶
4. 删除存储桶
5. 获取对象列表
不传参数时,默认返回当前 bucket 下文件列表:
按前缀筛选:
按目录层级列出:
如果配置了 options.domain,每一项都会包含完整访问地址:
6. 上传文件
7. 删除文件
8. 下载文件
Laravel 使用
发布配置:
使用容器:
All versions of storage with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
ext-curl Version *
aliyuncs/oss-sdk-php Version ^2.7
qcloud/cos-sdk-v5 Version ^2.6
qiniu/php-sdk Version ^7.2
qcloud_sts/qcloud-sts-sdk Version ^3.0
ext-curl Version *
aliyuncs/oss-sdk-php Version ^2.7
qcloud/cos-sdk-v5 Version ^2.6
qiniu/php-sdk Version ^7.2
qcloud_sts/qcloud-sts-sdk Version ^3.0
The package szwtdl/storage contains the following files
Loading the files please wait ...