Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sabakugaara authored Jan 20, 2017
1 parent d8eeecc commit d86ec68
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,16 @@

<a name="install"></a>
### 安装
PHP >= 5.5,使用 `composer` 安装

#### PHP >= 5.5

1.使用 `composer` 安装

```
composer require upyun/sdk
```

如果不适应 `composer` 管理,可以直接下载[压缩包](https://github.com/upyun/php-sdk/releases),解压后,项目中添加如下代码:
2.如果不适应 `composer` 管理,可以直接下载[压缩包](https://github.com/upyun/php-sdk/releases),解压后,项目中添加如下代码:

```
require_once '/path/to/php-sdk/vendor/autoload.php';
Expand All @@ -50,7 +54,8 @@ require_once '/path/to/php-sdk/vendor/autoload.php';
### 初始化

```php
require_once('vendor/autoload.php');
require_once('vendor/autoload.php'); // 只针对使用 composer 安装
// require_once '/path/to/php-sdk/vendor/autoload.php'; // 针对压缩包安装

use Upyun\Upyun;
use Upyun\Config;
Expand Down

0 comments on commit d86ec68

Please sign in to comment.