create a new composer project code example Example 1: composer clear cache $ composer clearcache Example 2: update packages composer global composer global update