File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff 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
54581 . 打开终端。
55592 . 下载 Composer,执行以下命令。
5660
57- ```
61+ ``` bash
5862curl -sS https://getcomposer.org/installer | php
5963```
6064
@@ -70,7 +74,7 @@ curl -sS https://getcomposer.org/installer | php
7074
71754 . 使用 Composer 安装,执行以下命令。
7276
73- ```
77+ ``` bash
7478php 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```
You can’t perform that action at this time.
0 commit comments