composer: How to find the exact version of a package?
Solution 1:
I know it's an old question, but...
composer.phar show
Will show all the currently installed packages and their version information. (This was shown in previous versions of Composer only when using the now-deprecated -i
option.)
To see more details, specify the name of the package as well:
composer.phar show monolog/monolog
That will show many things, including commit MD5 hash, source URL, license type, etc.
Solution 2:
You can use composer show like this:
composer show package/name