From 1d99f995b26b617e4ce84cb8058b1913e09d5886 Mon Sep 17 00:00:00 2001 From: Ymlluo Date: Sun, 28 Nov 2021 22:40:20 +0800 Subject: [PATCH] support php 8 version --- composer.json | 2 +- readme.md | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 78df79e..7227a06 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "homepage": "https://github.com/ymlluo/group-robot", "keywords": ["Laravel", "GroupRobot","robot","dingtalk","wechat","feishu"], "require": { - "php": "^7.1", + "php": "^7.1|^8.0", "ext-zip": "*", "ext-curl": "*", "ext-json": "*", diff --git a/readme.md b/readme.md index 8a8c90d..14cb1e8 100644 --- a/readme.md +++ b/readme.md @@ -72,6 +72,8 @@ Table of Contents Created by [gh-md-toc](https://github.com/ekalinin/github-markdown-toc) + + # 安装 Via Composer @@ -79,6 +81,14 @@ Via Composer ``` bash $ composer require ymlluo/group-robot ``` +## 升级 composer 版本 v2 +```bash + +sudo apt-get remove composer; +php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"; +php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"; +composer self-update; +``` # 使用说明