composer list code example
Example 1: composer list packages
composer show -i //local packages
composer global show -i //global packages
Example 2: composer add package
composer require name-of-package
composer show -i //local packages
composer global show -i //global packages
composer require name-of-package