composer show --tree require-dev code example
Example: composer list packages
composer show -i //local packages
composer global show -i //global packages
composer show -i //local packages
composer global show -i //global packages