php

阿里云短信 composer 集成 PHP 错误

2020-02-22  本文已影响0人  bianruifeng

PHP 阿里云短信集成
终端到项目根目录执行:composer require alibabacloud/client

报错如下:

username@username project % composer require alibabacloud/client   
Using version ^1.5 for alibabacloud/client
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - phpoffice/phpspreadsheet 1.10.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - phpoffice/phpspreadsheet 1.10.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - phpoffice/phpspreadsheet 1.10.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - Installation request for phpoffice/phpspreadsheet (locked at 1.10.1, required as ^1.2) -> satisfiable by phpoffice/phpspreadsheet[1.10.1].

  To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Installation failed, reverting ./composer.json to its original content.

搜了好多方法,都不行。

最后是这个方法解决了:
composer require alibabacloud/client --ignore-platform-reqs

上一篇下一篇

猜你喜欢

热点阅读