composer list all required code example
Example 1: composer list packages
composer show -i //local packages
composer global show -i //global packages
Example 2: composer update
php composer.phar update
composer show -i //local packages
composer global show -i //global packages
php composer.phar update