install
command reads the composer.json
file from the current directory, resolves the dependencies, and installs them into vendor
composer install / composer i
If composer.lock
file exists, installs exactly what's specified in this file
Otherwise
1. Reads composer.json
file to look out what dependencies needs to be installed
2. Writes the composer.lock with the information of the project (installed dependencies)