Find Outdated Packages With Composer
Composer now features an “outdated” command to find newer versions of your dependencies. The command shows a list of installed packages including their latest version.
To list outdated packages in your project, use the
$ composer outdated
If you’re working with a big framework like Laravel or Symfony the list could become quite long. To make it more readable, the outdated command comes with two flags.
Implies -latest, but this lists *only* packages that have a newer version available.
$ composer outdated --outdated
Restricts the list of packages to your direct dependencies.
$ composer outdated --direct
Read more about the command in the original pull request or in the documentation. This feature was requested by many and I’m really happy to see this feature integrated within Composer.
Like this article? Reach out to me and say hi on Twitter!
All articles written with ♥ by Vincent Klaiber