command to install composer package which are compatible with the environment instead of latest package code example
Example 1: upgrade composer version
composer self-update
Example 2: composer update
php composer.phar update
composer self-update
php composer.phar update