问题
Can't find in Composer documentation how to check all dependencies for new versions. In bower there's bower list
:
Any alternative in Composer to achieve this?
回答1:
No, the feature you are asking for is not implemented, yet.
Update (May 2016):
Use: composer outdated
or composer show --outdated
Old answer:
You may find a feature request for "list packages with dependencies" over here: https://github.com/composer/composer/issues/3836
The "possible updates indication" is an addition to that.
See also Seldaeks answer:
$ for pkg in `composer show -i --name-only`; do composer show -i $pkg | grep 'php '; done
The cmd is not a perfect fit. I've added it to show how to iterate over packages and then list more details. You might need to adjust it and alter the grep.
Update (Nov 2015):
There is a Composer Plugin called "composer-versions-check", which shows outdated packages from last major versions after using the update command. (Latest is ..)
https://github.com/Soullivaneuh/composer-versions-check
来源:https://stackoverflow.com/questions/33508506/composer-show-possible-updates-for-dependencies-like-bower-list