如何使用 Composer 安装特定版本的包?

2022-01-21 00:00:00 php composer-php dependency-management

我正在尝试使用 Composer 安装特定版本的软件包.我尝试了 composer installcomposer require 但他们正在安装最新版本的软件包.如果我想要旧版本怎么办?

I am trying to install a specific version of a package using Composer. I tried composer install and composer require but they are installing the latest version of the package. What if I want an older version?

推荐答案

composer require vendor/package:version

例如:

作曲家需要refinery29/test-util:0.10.2

相关文章