composer list packages code example
Example 1: composer check package version
composer show package/name
Example 2: composer clear cache
$ composer clearcache
Example 3: composer installed versions
composer show -i
Example 4: composer list packages
composer show -i //local packages
composer global show -i //global packages