manipulate composer.json from console code example Example 1: composer self update command composer self-update Example 2: composer clear cache $ composer clearcache