Composer Commands

In short

composer create-project laravel/laravel folder_name
composer install
composer update

Install a freash laravel project

composer create-project laravel/laravel project_dir_name

The create-project command creates a new project from a given package into a new directory. If executed without params and in a directory with a composer.json file it installs the packages for the current directory location.


Install all dependencies

composer install

The install command reads the composer.lock file from the current directory, processes it, and downloads and installs all the libraries and dependencies outlined in that file. If the file does not exist it will look for composer.json and do the same.


Update project dependencies

composer update

The update command reads the composer.json file from the current directory, processes it, and updates, removes or installs all the dependencies.

results matching ""

    No results matching ""