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
2. Restricts the list of packages to your direct dependencies.
$ composer outdated --direct