composer list package version code example
Example 1: composer check package version
composer show package/name
Example 2: composer list packages
composer show -i //local packages
composer global show -i //global packages
composer show package/name
composer show -i //local packages
composer global show -i //global packages