--outdated
option
Perhaps, you are looking for --outdated
option.
It will make output like this:
zendframework/zend-db 2.9.2 2.9.3 Database abstraction layer, SQL...
2.9.2 2.9.3
- installed and new available version (according to instructions in composer files).
--all
option
I guess it --all
should work for you within one package.
It will show your current version with the asterisk. It will look like this:
dev-master, v0.1.2-alpha.0, * v0.1.1-alpha.0, v0.1.0-alpha.1, v0.1.0-alpha.0, dev-develop
So, I have installed v0.1.1-alpha.0
.
--available
option
Also, there is --available
option to new version.
--available (-a): List available packages only.
https://getcomposer.org/doc/03-cli.md#show
Example:
composer show --available monolog/monolog 1.0.2
In this case it will make request to available composer repositories, packagist.org or your custom ones.
P.S. My GIT version: 2.14.1