Composer: Installation and usage
Install Composer
You can skip this step if you’ve already installed the Composer.
Make Composer Globally Available
If you wish, you can additionally install Composer globally so you don’t have to type php/path/to/composer.phar every time. The Windows installer will automatically set up the PATH system variable.
Working with private repositories
Add composer.json file into your repository which describes it:
Add following to your main project composer.json file
Then run
composer install
- Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.
composer update
- Updates your dependencies to the latest version according to composer.json, and updates the composer.lock file.