I tried installing the composer via brew for:
In usr/local/bin (which Maurice did not have, and I had to do it personally).
brew tap josegonzalez/homebrew-php brew install josegonzalez/php/composer
I can run php composer.phar , but when I do php composer.phar install , I get the error:
Composer could not find a composer.json file in /usr/local/bin To initialize a project, please create a composer.json file as described in the http://getcomposer.org/ "Getting Started" section
So, I go to https://getcomposer.org/doc/00-intro.md . CTRL + F ".json" and there is nothing there. Seriously composer?
EDIT: What I was trying to do was to have the composer executable vs php composer.phar . Now it works.
source share