3

我正在尝试使用这个库。php-amqplib

composer require php-amqplib/php-amqplib

但我收到此错误:

Using version ^2.11@dev for php-amqplib/php-amqplib
./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
    - Installation request for php-amqplib/php-amqplib ^2.11@dev -> satisfiable by php-amqplib/php-amqplib[2.11.x-dev, v2.11.0].
    - Can only install one of: phpseclib/phpseclib[2.0.x-dev, dev-master].
    - Can only install one of: phpseclib/phpseclib[dev-master, 2.0.x-dev].
    - Can only install one of: phpseclib/phpseclib[2.0.x-dev, dev-master].
    - Conclusion: install phpseclib/phpseclib 2.0.x-dev
    - Installation request for phpseclib/phpseclib dev-master -> satisfiable by phpseclib/phpseclib[dev-master].
4

1 回答 1

5

我自己解决这个问题。通过添加

 "php-amqplib/php-amqplib": "^2.6"

在 composer.json 的 require 部分并运行composer update

于 2020-01-10T07:21:59.930 回答