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 3535
3636<a name =" install " ></a >
3737### 安装
38- PHP >= 5.5,使用 ` composer ` 安装
38+
39+ #### PHP >= 5.5
40+
41+ 1.使用 ` composer ` 安装
42+
3943```
4044composer require upyun/sdk
4145```
4246
43- 如果不适应 ` composer ` 管理,可以直接下载[ 压缩包] ( https://github.com/upyun/php-sdk/releases ) ,解压后,项目中添加如下代码:
47+ 2. 如果不适应 ` composer ` 管理,可以直接下载[ 压缩包] ( https://github.com/upyun/php-sdk/releases ) ,解压后,项目中添加如下代码:
4448
4549```
4650require_once '/path/to/php-sdk/vendor/autoload.php';
@@ -50,7 +54,8 @@ require_once '/path/to/php-sdk/vendor/autoload.php';
5054### 初始化
5155
5256``` php
53- require_once('vendor/autoload.php');
57+ require_once('vendor/autoload.php'); // 只针对使用 composer 安装
58+ // require_once '/path/to/php-sdk/vendor/autoload.php'; // 针对压缩包安装
5459
5560use Upyun\Upyun;
5661use Upyun\Config;
You can’t perform that action at this time.
0 commit comments