When you wanna
- use different version of PHP for Composer (or other CLI apps)
- use different
php.ini
with Composer, because of for example slow XDebug (that you don't even need with production phar of Composer)
- save
composer.sh
as/usr/local/bin/composer
- save
composer.php.ini
as/usr/local/etc/composer.php.ini
, or create your own ini chmod +x /usr/local/bin/composer
- profit
- You can easily change the used PHP runtime by changing the
php
binnary to an absolute path