composer list package license code example
Example 1: composer clear cache
$ composer clearcache
Example 2: composer list packages
composer show -i //local packages
composer global show -i //global packages
$ composer clearcache
composer show -i //local packages
composer global show -i //global packages