composer global packages code example Example 1: upgrade composer version composer self-update Example 2: update composer mac #mac composer self-update