As in the title, is there any command that can list installed packages and the latest version of those packages together?
edit:
php composer.phar show
this show all available packages and also installed packages with installed version only
php composer.phar show [package]
this can get both installed version and latest version, but it is inconvenience if many packages are installed
You can run composer show -i (short for --installed ). In the latest version just use composer show .
Composers. Every composer's name should be given in its proper form, correctly spelled, and with birth and death dates. If a composer appears more than once on your program, use only his/her last name (with no dates) after the first appearance.
To update your packagesNavigate to the root of your git repo, where your composer. json file is. Run composer update (on your local machine) to update the required packages and re-generate a composer.
composer/vendor/ directory and, most importantly, the phpunit CLI tools are installed into ~/. composer/vendor/bin/.
Since Composer v1.1 (May 2016) you can run
composer outdated
As the current version of composer -i
option which tells composer to show only the installed version is deprecated.
So if you want to show only the installed version of a package, the syntax is:
composer show "package-name"
If you need to pull all available versions of the package, use --all
option like this:
composer show "phpunit/phpunit" --all
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With