comper install all requirements code example Example 1: composer update php composer.phar update Example 2: composer add package composer require name-of-package