Symfony 5:使用 composer 安装 smalot/cups-ipp

Symfony 5 : install smalot/cups-ipp with composer

我正在尝试在 Symfony 5 上安装 smalot/cups-ipp 包,但我对所需的包有依赖性问题。

要安装 smalot/cups-ipp,我 运行 以下命令:

# composer require smalot/cups-ipp:dev-master

结果是:

Do not run Composer as root/super user! See https://getcomposer.org/root for details
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.0.*"
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for smalot/cups-ipp dev-master -> satisfiable by smalot/cups-ipp[dev-master].
    - smalot/cups-ipp dev-master requires php-http/socket-client ^1.0 -> satisfiable by php-http/socket-client[v1.0.0, v1.1.0, v1.2.0, v1.3.0, v1.4.0, v1.4.1] but these conflict with your requirements or minimum-stability.


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

我尝试了普通版本(不是 dev-master),但我遇到了 symfony/yaml 包的另一个依赖问题。

我安装了 php-http/socket-client 需要 symfony/options-resolver.

symfony/options-resolver 是 Symfony 5 的第 5 版。所以我在 dev-master 中安装了 php-http/socket-client版本否则我有另一个依赖问题。

所以现在我有:

# composer show -i
symfony/options-resolver             v5.0.8
php-http/socket-client               dev-master

我的问题是 smalot/cups-ipp 在 1.4 版中需要 php-http/socket-client,而不是 2.0 版。那么你知道我如何使用当前的 php-http/socket-client 包强制安装 smalot/cups-ipp 安装吗(2.0 ) 版本?

正如您在 https://github.com/smalot/cups-ipp/releases 上看到的那样,该软件包今天刚刚发布。此更新放宽了所有包限制。

它在 Packagist 上尚不可用,这是维护者必须通过自动更新配置或手动触发的东西 - 在那之前,你必须等待。