Could not open input file: composer.phar
snippet in php

Could not open input file: composer.phar

user8726

composer self-update
composer install --prefer-dist

Could not open input file: composer.phar

user9128

php -r "readfile('https://getcomposer.org/installer');" | php

Could not open input file: composer.phar

user9037

curl -sS https://getcomposer.org/installer | php

Could not open input file: composer

user6126

composer install

Could not open input file: composer.phar

user5882

$ composer update friendsofsymfony/elastica-bundle

Could not open input file: composer.phar

user9121

Copied from https://stackoverflow.com/questions/21670709/running-composer-returns-could-not-open-input-file-composer-phar/51907013#51907013