How to get list of all installed packages along with version in composer?

后端 未结 8 443
温柔的废话
温柔的废话 2020-11-28 18:27

I have been working on a project using Symfony 2.1 on my local machine. I have uploaded it to my server but when I try and install the vendor bundles using Composer, I\'m g

8条回答
  •  一整个雨季
    2020-11-28 18:38

    Ivan's answer above is good:

    composer global show -i

    Added info: if you get a message somewhat like:

    Composer could not find a composer.json file in ~/.composer

    ...you might have no packages installed yet. If so, you can ignore the next part of the message containing:

    ... please create a composer.json file ...

    ...as once you install a package the message will go away.

提交回复
热议问题