composer list latest versions code example
Example 1: composer installed versions
composer show -i
Example 2: composer list packages
composer show -i //local packages
composer global show -i //global packages
composer show -i
composer show -i //local packages
composer global show -i //global packages