get currentcomposer version code example Example 1: composer clear cache $ composer clearcache Example 2: update packages composer global composer global update