initialize comoser.phar code example Example 1: upgrade composer version composer self-update Example 2: composer clear cache $ composer clearcache