composer update in version 1 code example Example 1: upgrade composer version composer self-update Example 2: composer update php composer.phar update