×
          
              
          
      
      Clear all filters including search bar
          
        Valeri Tandilashvili's Composer Notes
      
    composer search keyword1 keyword2install 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)minor and patch versions of the package but major will be the specified versioncomposer require "vendor/package:2.*"composer remove vendor/package vendor/package2composer.lock composer update1. The composer.lock file will be ignored
2. composer.json file dependencies will be installed and updated (if a dependency is not installed it will be downloaded)projectname based on laravel/laravel packagecomposer create-project laravel/laravel projectnamecomposerremove command removes packages from  vendor and composer.json filecomposer remove vendor/packagecomposer require phpunit/phpunitcomposer.json we can use --with and provide a custom versioncomposer update --with vendor/package:2.0.1