ripples/aliyun-oss 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ripples/aliyun-oss

最新稳定版本:0.1.3

Composer 安装命令:

composer require ripples/aliyun-oss

包简介

Wrap for Aliyun OSS SDK and make it more easy to use.

关键字:

README 文档

README

This is wrapper for Aliyun OSS SDK and make it more easy to use.

Supporting internal and external endpoints for better operations.

Installation

This package can be installed through composer.

composer require ripples/aliyun-oss

Usage

See examples/example.php

Your can give both external and internal endpoints when constructing. The last parameter of each method represent whether to use the internal endpoint or the other one.

By default, we used the internal endpoint except the methods to generate signatured url.

We use the value of external endpoint as the default value of internal endpoint. So if you don't want to use two endpoints, just omit the internal endpoint when constructing. Then, no matter what parameter you use when call the methods, we will all use the external endpoint.

If you want to update meta data when copy file, remember to set x-oss-metadata-directive header to REPLACE.

Be cautious when update meta data. Assume that the init headers are ['a' => 1, 'b' => 2].

After modifyMeta('bucket', 'key', ['b' => 3]), the headers would be ['a' => 1, 'b' => 3].

After setMeta('bucket', 'key', ['b' => 3]), the headers would be ['b' => 3].

Notice that we'll automatic check the response status. And you can modify the attribute ok_status to intervene it.

Finally, we define the clients as public. So it's ok to call the method of Aliyun SDK directly.

LICENSE

MIT

统计信息

  • 总下载量: 30
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-02