Command "phar" is not defined. code example
Example 1: Could not open input file: composer
composer install
Example 2: Could not open input file: composer.phar
$ composer update friendsofsymfony/elastica-bundle
composer install
$ composer update friendsofsymfony/elastica-bundle