File tree Expand file tree Collapse file tree 23 files changed +1214
-79
lines changed Expand file tree Collapse file tree 23 files changed +1214
-79
lines changed Original file line number Diff line number Diff line change 11/.gitattributes export-ignore
22/.gitignore export-ignore
33/.travis.yml export-ignore
4- /phpunit.xml export-ignore
5- /src /Qcloud /Cos /Tests export-ignore
64/bin export-ignore
Original file line number Diff line number Diff line change 1+ name : PHP 5.6
2+ on :
3+ push :
4+ branches :
5+ - master
6+ pull_request :
7+ branches :
8+ - master
9+
10+ env :
11+ COS_REGION : ${{ secrets.COS_REGION }}
12+ COS_APPID : ${{ secrets.COS_APPID }}
13+ COS_SECRET : ${{ secrets.COS_SECRET }}
14+ COS_KEY : ${{ secrets.COS_KEY }}
15+ COS_BUCKET : ${{ secrets.COS_BUCKET }}
16+ jobs :
17+ build :
18+ name : Build
19+ runs-on : ubuntu-latest
20+ container :
21+ image : php:5.6
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v2
25+
26+ - name : Prepare
27+ run : |
28+ apt update
29+ apt install -y libzip-dev unzip
30+ docker-php-ext-install zip
31+ curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
32+ composer install
33+ - name : Test
34+ run : for i in `ls src/Qcloud/Cos/*.php`; do php -l $i; done
Original file line number Diff line number Diff line change 1+ name : PHP 7.1
2+ on :
3+ push :
4+ branches :
5+ - master
6+ pull_request :
7+ branches :
8+ - master
9+
10+ env :
11+ COS_REGION : ${{ secrets.COS_REGION }}
12+ COS_APPID : ${{ secrets.COS_APPID }}
13+ COS_SECRET : ${{ secrets.COS_SECRET }}
14+ COS_KEY : ${{ secrets.COS_KEY }}
15+ COS_BUCKET : ${{ secrets.COS_BUCKET }}
16+ jobs :
17+ build :
18+ name : Build
19+ runs-on : ubuntu-latest
20+ container :
21+ image : php:7.1
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v2
25+
26+ - name : Test
27+ run : |
28+ apt update
29+ apt install -y libzip-dev unzip
30+ docker-php-ext-install zip
31+ curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
32+ composer install
33+ composer require --dev phpunit/phpunit
34+ ./vendor/bin/phpunit
35+ - name : codecov
36+ uses : codecov/codecov-action@v2
Original file line number Diff line number Diff line change 1+ name : PHP 7.2
2+ on :
3+ push :
4+ branches :
5+ - master
6+ pull_request :
7+ branches :
8+ - master
9+
10+ env :
11+ COS_REGION : ${{ secrets.COS_REGION }}
12+ COS_APPID : ${{ secrets.COS_APPID }}
13+ COS_SECRET : ${{ secrets.COS_SECRET }}
14+ COS_KEY : ${{ secrets.COS_KEY }}
15+ COS_BUCKET : ${{ secrets.COS_BUCKET }}
16+ jobs :
17+ build :
18+ name : Build
19+ runs-on : ubuntu-latest
20+ container :
21+ image : php:7.2
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v2
25+
26+ - name : Test
27+ run : |
28+ apt update
29+ apt install -y libzip-dev unzip
30+ docker-php-ext-install zip
31+ pecl install xdebug
32+ docker-php-ext-enable xdebug
33+ curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
34+ composer install
35+ composer require --dev phpunit/phpunit
36+ XDEBUG_MODE=coverage ./vendor/bin/phpunit
37+ - name : codecov
38+ uses : codecov/codecov-action@v2
Original file line number Diff line number Diff line change 1+ name : PHP 7.3
2+ on :
3+ push :
4+ branches :
5+ - master
6+ pull_request :
7+ branches :
8+ - master
9+
10+ env :
11+ COS_REGION : ${{ secrets.COS_REGION }}
12+ COS_APPID : ${{ secrets.COS_APPID }}
13+ COS_SECRET : ${{ secrets.COS_SECRET }}
14+ COS_KEY : ${{ secrets.COS_KEY }}
15+ COS_BUCKET : ${{ secrets.COS_BUCKET }}
16+ jobs :
17+ build :
18+ name : Build
19+ runs-on : ubuntu-latest
20+ container :
21+ image : php:7.3
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v2
25+
26+ - name : Test
27+ run : |
28+ apt update
29+ apt install -y libzip-dev unzip
30+ docker-php-ext-install zip
31+ pecl install xdebug
32+ docker-php-ext-enable xdebug
33+ curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
34+ composer install
35+ composer require --dev phpunit/phpunit
36+ XDEBUG_MODE=coverage ./vendor/bin/phpunit
37+ - name : codecov
38+ uses : codecov/codecov-action@v2
Original file line number Diff line number Diff line change 1+ name : PHP 7.4
2+ on :
3+ push :
4+ branches :
5+ - master
6+ pull_request :
7+ branches :
8+ - master
9+
10+ env :
11+ COS_REGION : ${{ secrets.COS_REGION }}
12+ COS_APPID : ${{ secrets.COS_APPID }}
13+ COS_SECRET : ${{ secrets.COS_SECRET }}
14+ COS_KEY : ${{ secrets.COS_KEY }}
15+ COS_BUCKET : ${{ secrets.COS_BUCKET }}
16+ jobs :
17+ build :
18+ name : Build
19+ runs-on : ubuntu-latest
20+ container :
21+ image : php:7.4
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v2
25+
26+ - name : Prepare
27+ run : |
28+ apt update
29+ apt install -y libzip-dev unzip
30+ docker-php-ext-install zip
31+ pecl install xdebug
32+ docker-php-ext-enable xdebug
33+ curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
34+ composer require --dev phpunit/phpunit
35+ - name : Test
36+ run : |
37+ XDEBUG_MODE=coverage ./vendor/bin/phpunit
Original file line number Diff line number Diff line change 1+ name : PHP 8.0
2+ on :
3+ push :
4+ branches :
5+ - master
6+ pull_request :
7+ branches :
8+ - master
9+
10+ env :
11+ COS_REGION : ${{ secrets.COS_REGION }}
12+ COS_APPID : ${{ secrets.COS_APPID }}
13+ COS_SECRET : ${{ secrets.COS_SECRET }}
14+ COS_KEY : ${{ secrets.COS_KEY }}
15+ COS_BUCKET : ${{ secrets.COS_BUCKET }}
16+ jobs :
17+ build :
18+ name : Build
19+ runs-on : ubuntu-latest
20+ container :
21+ image : php:8.0
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v2
25+
26+ - name : Prepare
27+ run : |
28+ apt update
29+ apt install -y libzip-dev unzip
30+ docker-php-ext-install zip
31+ pecl install xdebug
32+ docker-php-ext-enable xdebug
33+ curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
34+ composer require --dev phpunit/phpunit
35+ - name : Test
36+ run : |
37+ XDEBUG_MODE=coverage ./vendor/bin/phpunit
38+ - name : codecov
39+ uses : codecov/codecov-action@v2
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ composer.lock
44vendor /
55* .DS_Store
66index.php
7+ clover.xml
Original file line number Diff line number Diff line change 11cos-php-sdk-v5 Upgrade Guide
22====================
3+
4+ 2.3.1 to 2.3.2
5+ ---------
6+ - 新增视频截帧,视频信息查询示例
7+ - 新增PUT/GET Bucket Referer示例
8+ - 对于相应接口添加CRC返回信息
9+ - 修复图片审核中ci-process param出现两次的问题
10+ - 修复PHP5.6 版本的依赖问题
11+ - 根据PHP版本自动composer install guzzle6.x或guzzle7
12+
13+ 2.3.0 to 2.3.1
14+ ---------
15+ - 修复文本检测的返回格式
16+ - 修复sample中的问题
17+ - 新增视频、文本、文档、音频检测
18+ - 新增媒体转码、截图、拼接
19+
3202.2.3 to 2.3.0
421---------
522- 新增图片审核,视频审核,音频审核,文本审核,文档审核接口
Original file line number Diff line number Diff line change 66 * Usage: php bin/release or php bin/release version
77 */
88
9- require_once 'vendor/autoload.php ' ;
9+ require_once '../ vendor/autoload.php ' ;
1010
1111use Qcloud \Cos \Client ;
1212use Qcloud \Cos \Service ;
You can’t perform that action at this time.
0 commit comments