composer self update vs update global code example Example 1: composer self update command composer self-update Example 2: composer clear cache $ composer clearcache