reinstall composer code example
Example 1: how uninstall composer
Delete the file composer.phar.
Delete the Cache Folder:
Linux: /home/<user>/.composer
Windows: C:\Users\<username>\AppData\Roaming\Composer
Example 2: where do you install composer
// Adding permissions after installing Composer on Mac OSX
sudo chmod 755 /usr/local/bin/composer.phar