安装了我的 composer.json 文件中列出的软件包的哪个版本?

What version of the packages listed in my composer.json file are installed?

如何知道我的项目中安装了哪个版本的小部件?我正在使用 yii2 框架和作曲家来处理包依赖性。

有什么方法可以检查我的 composer.json 文件中所列软件包的安装版本?

如有任何建议,我们将不胜感激。谢谢

Is there a way I can check what version of the packages listed in my composer.json file are installed?

是的,只需使用 show 选项:php composer.phar show

所有可用选项都列在 docs