Why symfony 2 uses both, the deps file and the composer.json file?
I can see some documents tell me to:
php bin/vendors install
Whilst the other tell me to:
php composer.phar install
composer. json is a JSON file placed in the root folder of PHP project. Its purpose is to specify a common project properties, meta data and dependencies, and it is a part of vast array of existing projects.
To configure Composer for your PHP app json file specifies required packages. Verify that a composer. json file is present in the root of your git repository. Run composer install (on your local machine) to install the required packages and generate a composer.
The root package is the package defined by the composer. json at the root of your project. It is the main composer. json that defines your project requirements. Certain fields only apply when in the root package context.
The deps file and bin/vendors script are used in Symfony 2.0.x, while Symfony 2.1.x has switched to Composer. The bin/vendors script was just a stub because Composer was not ready for production when Symfony 2.0.0 was released.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With