Checking Composer Modules for Available Updates
Obviously, the following only work for modules installed via Composer… But everyone should be using composer now anyway. Albeit, I understand there is the odd exception where some vendors only make their products downloadable via a zip file.
The following command can show you what will be updated if you run:
composer update --dry-run
Obviously, this will check all modules… But you could do this one-by-one with:
composer update vendor/module --dry-run
composer outdated (Preferred)
The following shows a list of installed modules that have updates available:
||Dependency is in the latest version and is up to date.
||Dependency has a new version available that includes backwards compatibility breaks according to semver, so upgrade when you can but it may involve work.
||Dependency has a new version that is semver-compatible and you should upgrade it.
And if you want to see what versions of something you currently have installed then you can run:
composer show -l
Or for a specific module then you can use the grep tool and the name of the thing you’re after such as:
composer show | grep modulename