Laravel is a framework, but it's also a PHP package, installable by the composer package manager when you run the command composer create-project laravel/laravel
. Let's explore the syntax options and other composer-related topics.
"composer install" VS "composer require"
A quick start answering this common question.
When running the composer install
command, composer installs every package in the composer.json
file list.
The composer require package/name
is similar but does 2-in-1. This command installs a package to a project and adds it to a composer.json
file required list.
composer.json VS composer.lock: install VS update
In composer.json
, you specify what...