Skip to content

Commit ec9f34d

Browse files
authored
Update composer version semantic constraints (#240)
Update composer version semantic constraints
1 parent f978a83 commit ec9f34d

File tree

3 files changed

+34
-4
lines changed

3 files changed

+34
-4
lines changed

.github/workflows/install.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Support Multiple Versions
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
install:
9+
name: PHP${{ matrix.php-version }} Test Install
10+
runs-on: "${{ matrix.os }}"
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest]
14+
php-version: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
15+
max-parallel: 10
16+
fail-fast: false
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Setup PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php-version }}
25+
coverage: none
26+
27+
- name: Setup Dependencies
28+
run:
29+
composer install -o

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
腾讯云 COS-PHP-SDK-V5([XML API](https://cloud.tencent.com/document/product/436/7751)
44

5+
[![PHP Version](http://poser.pugx.org/qcloud/cos-sdk-v5/require/php)](https://packagist.org/packages/qcloud/cos-sdk-v5)
56
[![License](https://poser.pugx.org/qcloud/cos-sdk-v5/license)](LICENSE)
67
[![Latest Stable Version](https://poser.pugx.org/qcloud/cos-sdk-v5/v/stable)](https://packagist.org/packages/qcloud/cos-sdk-v5)
78
[![Total Downloads](https://img.shields.io/packagist/dt/qcloud/cos-sdk-v5.svg?style=flat)](https://packagist.org/packages/qcloud/cos-sdk-v5)
89
[![Build Status](https://api.travis-ci.com/tencentyun/cos-php-sdk-v5.svg?branch=master)](https://app.travis-ci.com/github/tencentyun/cos-php-sdk-v5)
910
[![codecov](https://codecov.io/gh/tencentyun/cos-php-sdk-v5/branch/master/graph/badge.svg)](https://codecov.io/gh/tencentyun/cos-php-sdk-v5)
10-
[![PHP Version](http://poser.pugx.org/qcloud/cos-sdk-v5/require/php)](https://packagist.org/packages/qcloud/cos-sdk-v5)
11+
[![Support Multiple Versions](https://github.com/tencentyun/cos-php-sdk-v5/actions/workflows/install.yml/badge.svg)](https://github.com/tencentyun/cos-php-sdk-v5/actions/workflows/install.yml)
1112

1213
## 依赖
1314

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
"ext-curl": "*",
3636
"ext-json": "*",
3737
"ext-simplexml": "*",
38-
"guzzlehttp/guzzle": ">=6.2.1",
39-
"guzzlehttp/guzzle-services": ">=1.1",
40-
"guzzlehttp/psr7": "<=2.1"
38+
"guzzlehttp/guzzle": "^6.2.1 || ^7.0",
39+
"guzzlehttp/guzzle-services": "^1.1",
40+
"guzzlehttp/psr7": "^1.3.1 || ^2.0"
4141
},
4242
"config": {
4343
"platform-check": false

0 commit comments

Comments
 (0)