Skip to content

Commit 898ebb4

Browse files
authored
Update README.md
1 parent f8e4e44 commit 898ebb4

File tree

1 file changed

+26
-22
lines changed

1 file changed

+26
-22
lines changed

README.md

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,12 @@
88
- [更新说明](#update-instructions)
99
- [使用说明](#use-instructions)
1010
- [安装](#install)
11-
- [使用](#usage)
11+
 - [文档](#doc)
12+
 - [示例](#usage)
1213
- [贡献代码](#contribute)
1314
- [社区](#community)
1415
- [许可证](#license)
1516

16-
<a name="update-instructions"></a>
17-
## 更新说明
18-
#### 3.0.0
19-
20-
- 重写 API 接口,不兼容 2.x 版本
21-
- 集合分块、刷新、视频预处理功能
22-
23-
#### 2.2.0
24-
25-
- 增加 composer 支持,特别感谢 [@totoleo](https://github.com/totoleo)`upyun/sdk` 仓库源修改为 UPYUN 官方项目地址
26-
- 移除不再推荐使用的 API:`rmDir deleteFile readDir getWritedFileInfo`),建议使用推荐方法替代
27-
- note: `2.1.0` 版本之前已经被 [@totoleo](https://github.com/totoleo) 使用
28-
29-
#### 2.0.0
30-
31-
- 使用1.0.x系列版本SDK的用户,注意原有部分方法已经不再推荐使用(`@deprecated`标注),但是出于兼容考虑目前任然保留,建议更新升级程序使用新版SDK提供的方法。
32-
33-
3417

3518
<a name="use-instructions"></a>
3619
## 使用说明
@@ -53,9 +36,15 @@ composer require upyun/sdk
5336
```
5437
require_once '/path/to/php-sdk/vendor/autoload.php';
5538
```
39+
<a name="doc"></a>
40+
### 文档
41+
42+
详细文档见 [doc.md](doc.md)
5643

5744
<a name="usage"></a>
58-
### 初始化
45+
### 示例
46+
47+
先初始化又拍云服务配置:
5948

6049
```php
6150
require_once('vendor/autoload.php'); // 只针对使用 composer 安装
@@ -67,8 +56,6 @@ $serviceConfig = new Config('yourServiceName', 'yourOperatorName', 'yourOperator
6756
$client = new Upyun($serviceConfig);
6857
```
6958

70-
详细文档见 [doc.md](doc.md),以下为部分简单示例
71-
7259
#### 字符串写入又拍云服务器
7360

7461
```
@@ -97,6 +84,23 @@ $saveLocal = fopen('/local/path/image.jpg', 'w');
9784
$client->read('/remote/server/image.png', $saveLocal);
9885
```
9986

87+
<a name="update-instructions"></a>
88+
## 更新说明
89+
#### 3.0.0
90+
91+
- 重写 API 接口,不兼容 2.x 版本
92+
- 集合分块、刷新、视频预处理功能
93+
94+
#### 2.2.0
95+
96+
- 增加 composer 支持,特别感谢 [@totoleo](https://github.com/totoleo)`upyun/sdk` 仓库源修改为 UPYUN 官方项目地址
97+
- 移除不再推荐使用的 API:`rmDir deleteFile readDir getWritedFileInfo`),建议使用推荐方法替代
98+
- note: `2.1.0` 版本之前已经被 [@totoleo](https://github.com/totoleo) 使用
99+
100+
#### 2.0.0
101+
102+
- 使用1.0.x系列版本SDK的用户,注意原有部分方法已经不再推荐使用(`@deprecated`标注),但是出于兼容考虑目前任然保留,建议更新升级程序使用新版SDK提供的方法。
103+
100104
<a name="contribute"></a>
101105
## 贡献代码
102106
1. Fork

0 commit comments

Comments
 (0)