Skip to content

Commit 98168d1

Browse files
authored
prerelease 2.3.2 (#229)
* feat(*):添加新特性,修复bug - 视频截帧,视频信息查询,put/get bucket referer - CRC添加 - 修复默认分块过大导致上传失败的问题 - 修复图片鉴定ci-process param出现两次的bug - 依赖更新 - action添加
1 parent 7d30c55 commit 98168d1

23 files changed

+1214
-79
lines changed

.gitattributes

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
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

.github/workflows/php5.6.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

.github/workflows/php7.1.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

.github/workflows/php7.2.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

.github/workflows/php7.3.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

.github/workflows/php7.4.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

.github/workflows/php8.0.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ composer.lock
44
vendor/
55
*.DS_Store
66
index.php
7+
clover.xml

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
cos-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+
320
2.2.3 to 2.3.0
421
---------
522
- 新增图片审核,视频审核,音频审核,文本审核,文档审核接口

bin/release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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

1111
use Qcloud\Cos\Client;
1212
use Qcloud\Cos\Service;

0 commit comments

Comments
 (0)