Reputation: 3860
I want to use composer with symfony2 my questions are : 1-Where should I install composer ? inside of symfony folder ? other folder such as /bin ? 2- where do I configure composer.json ? 3- should I specify the folder where I'll install a bundle in , in the json file ?
Excuse me, but the official documentation doesn't offer a detailed explanation ..
Upvotes: 1
Views: 147
Reputation: 3400
I tend to install composer globally. From your home dir, execute the following:
$ curl -sS https://getcomposer.org/installer | php
$ mv composer.phar /usr/local/bin/composer
Source: http://getcomposer.org/doc/00-intro.md#globally
Now you should have composer
executable from anywhere. You may now go to your Symfony2 dir and run composer install
.
Upvotes: 2