Where do I need to put file composer.json for composer to work with Symfony
Solution 1
In the root of your project. Because you mentioned symfony, just have a look at the composer.json
from the symfony-standard edition
https://github.com/symfony/symfony-standard/
Or even better: Follow the official instructions and use symfony-standard as starting point for your project directly.
Start by visiting the Symfony2 download page at http://symfony.com/download. On this page, you'll see the Symfony Standard Edition, which is the main Symfony2 distribution.
You can forkt it directly from github.
Solution 2
I just found on other topic that you can use :
php composer.phar --working-dir=/home/user/folder/ update
Solution 3
You may need to create a file called 'composer.json' See this document "https://getcomposer.org/doc/00-intro.md#declaring-dependencies"
Mirage
Updated on July 20, 2022Comments
-
Mirage almost 2 years
I have installed composer from this link, but I still could not find where do I need to place the
composer.json
file. -
Андрей Беньковский over 7 yearsI know you're excited, but please try to keep your language under control. Think of Stack Overflow as more like Wikipedia than like Reddit.