Composer - show possible updates for dependencies (like bower list)

╄→гoц情女王★ 提交于 2019-12-10 18:18:20

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!