Skip to content

Commit 7d30c55

Browse files
authored
Update README (#227)
1 parent 30f628b commit 7d30c55

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,18 @@ SDK 安装有三种方式:
4747

4848
推荐使用 Composer 安装 cos-php-sdk-v5,Composer 是 PHP 的依赖管理工具,允许您声明项目所需的依赖,然后自动将它们安装到您的项目中。
4949

50+
```bash
51+
composer require qcloud/cos-sdk-v5
52+
```
53+
5054
> 您可以在 [Composer 官网](https://getcomposer.org/) 上找到更多关于如何安装 Composer,配置自动加载以及用于定义依赖项的其他最佳实践等相关信息。
5155
5256
#### 安装步骤:
5357

5458
1. 打开终端。
5559
2. 下载 Composer,执行以下命令。
5660

57-
```
61+
```bash
5862
curl -sS https://getcomposer.org/installer | php
5963
```
6064

@@ -70,7 +74,7 @@ curl -sS https://getcomposer.org/installer | php
7074

7175
4. 使用 Composer 安装,执行以下命令。
7276

73-
```
77+
```bash
7478
php composer.phar install
7579
```
7680

@@ -305,6 +309,6 @@ try {
305309
$signedUrl = $cosClient->getObjectUrl($bucket, $key, '+10 minutes');
306310
echo $signedUrl;
307311
} catch (\Exception $e) {
308-
print_r($e);
312+
echo "$e\n";
309313
}
310314
```

0 commit comments

Comments
 (0)