Let\'s say I have a project with two packages installed by Composer:
php composer.phar require \'squizlabs/php_codesniffer:~2.0\' \'phpmd
I found this answer here,
composer install
Composer re-installs the packages listed in composer.json.