From fe5f6e5dd6da83d83fd77eece19bbfb0206422d5 Mon Sep 17 00:00:00 2001 From: LiHS Date: Fri, 7 Apr 2023 11:00:52 +0800 Subject: [PATCH] make compatible with php 8.x --- .github/workflows/test-ci.yml | 2 +- README.md | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-ci.yml b/.github/workflows/test-ci.yml index 86d5c865..e98983c9 100644 --- a/.github/workflows/test-ci.yml +++ b/.github/workflows/test-ci.yml @@ -10,7 +10,7 @@ jobs: fail-fast: false max-parallel: 1 matrix: - php-versions: ['5.4', '5.5', '5.6', '7.0'] + php-versions: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] runs-on: ubuntu-latest steps: - name: Checkout diff --git a/README.md b/README.md index 447a07d9..784d735a 100644 --- a/README.md +++ b/README.md @@ -12,18 +12,18 @@ ## 安装 -* 推荐使用 `composer` 进行安装。可以使用 composer.json 声明依赖,或者运行下面的命令。SDK 包已经放到这里 [`qiniu/php-sdk`][install-packagist] 。 +推荐使用 `composer` 进行安装。可以使用 composer.json 声明依赖,或者运行下面的命令。SDK 包已经放到这里 [`qiniu/php-sdk`][install-packagist] 。 + ```bash $ composer require qiniu/php-sdk ``` -* 直接下载安装,SDK 没有依赖其他第三方库,但需要参照 composer 的 autoloader,增加一个自己的 autoloader 程序。 ## 运行环境 -| Qiniu SDK版本 | PHP 版本 | -|:--------------------:|:---------------------------:| -| 7.x | cURL extension, 5.3 - 5.6,7.0 | -| 6.x | cURL extension, 5.2 - 5.6 | +| Qiniu SDK版本 | PHP 版本 | +|:--------------------:|:-----------------------------------------------:| +| 7.x | cURL extension, 5.3 - 5.6, 7.0 - 7.4, 8.0-8.1 | +| 6.x | cURL extension, 5.2 - 5.6 | ## 使用方法