Composer

  • Note

    1. What is composer?

    2. what is the use of composer

    3. why does we need composer

    1. Composer is a tool to install or update the depantancy packages which declared / specified in composer.json file.

    2. 'composer install' or 'composer update' command are used to install or update the packages (meaning it downloads them into your project)

    3. In laravel, all packages are installed /downloaded in vendor folder

    4. composer.lock.json file is also created which contains the details of installed packages

    When we run the 'composer install' command, it checks the composer.lock which packages have been already installed previously, during the previous composer install.