File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 35
35
36
36
<a name =" install " ></a >
37
37
### 安装
38
- PHP >= 5.5,使用 ` composer ` 安装
38
+
39
+ #### PHP >= 5.5
40
+
41
+ 1.使用 ` composer ` 安装
42
+
39
43
```
40
44
composer require upyun/sdk
41
45
```
42
46
43
- 如果不适应 ` composer ` 管理,可以直接下载[ 压缩包] ( https://github.com/upyun/php-sdk/releases ) ,解压后,项目中添加如下代码:
47
+ 2. 如果不适应 ` composer ` 管理,可以直接下载[ 压缩包] ( https://github.com/upyun/php-sdk/releases ) ,解压后,项目中添加如下代码:
44
48
45
49
```
46
50
require_once '/path/to/php-sdk/vendor/autoload.php';
@@ -50,7 +54,8 @@ require_once '/path/to/php-sdk/vendor/autoload.php';
50
54
### 初始化
51
55
52
56
``` php
53
- require_once('vendor/autoload.php');
57
+ require_once('vendor/autoload.php'); // 只针对使用 composer 安装
58
+ // require_once '/path/to/php-sdk/vendor/autoload.php'; // 针对压缩包安装
54
59
55
60
use Upyun\Upyun;
56
61
use Upyun\Config;
You can’t perform that action at this time.
0 commit comments