How can I see the versions of packages updated via composer?

1

It's nice and good to see Composer installing the dependencies according to the version we set in PHP.

I have a lot of applications where I use Composer , and at that time, I needed to update libraries on all of them, because of a bug fix that was released.

I need to install the 4.2.3 version of a library, which last I used was in 4.2.2 . However, as there are many systems, I do not know which ones I have already upgraded or not.

How can I see the version of one or more applications that are currently installed in Composer ?

If you have to do this, it will be easier, and the systems that I detect that is already with the version that I want installed just ignore and go to the next one.

    
asked by anonymous 13.05.2016 / 21:26

2 answers

1

Just use the command composer show

see the full doc here: link

    
13.05.2016 / 22:25
0

The above answer said fine, just use the composer show command, and a list of packages will appear.

I noticed that sometimes it is necessary to filter to find a specific package, so you do not have to look line by line of the listing of these packages.

In this case I suggest you use the command:

 composer show | grep 'nome_do_pacote'

If nothing has been installed, this command will not return anything on the screen.

    
16.05.2016 / 19:23