composer show code example
Example 1: composer clear cache
$ composer clearcache
Example 2: update packages composer global
composer global update
Example 3: composer update
php composer.phar update
Example 4: composer list packages
composer show -i //local packages
composer global show -i //global packages