简体   繁体   中英

Install composer and use it with symfony2

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 ..

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM