Home > Article > Backend Development > Composer Getting Started Tutorial--Installing Project Dependencies 4
Install project dependencies
Continued from the previous article Composer Getting Started Tutorial – Writing the composer.json file (3) To write the composer.json file, execute the following command on the command line in the directory where the composer.json file is located:
<code> php composer.phar <span>install</span>或composer <span>install</span></code>
Installation The files after successful project dependency are as follows:
Among them, the packages folder stores the dependent libraries of the project. composer writes the exact version number list during installation into the composer.lock file to lock composer, which will lock the specific version of the project. This The download or update command cannot be run. Only by deleting the composer.lock file can you download and update again.
The above introduces the composer introductory tutorial-installing project dependencies 4, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.