Courses

PHP for Laravel Developers

Composer: All You Need To Know

You're reading a FREE PREVIEW of a PREMIUM course.
Summary of this lesson:
- Understand Composer installation and update processes
- Learn about dependency management
- Explore package version control
- Examine useful Composer commands

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...

The full lesson is only for Premium Members.
Want to access all 16 lessons of this course? (52 min read)

You also get:

  • 76 courses
  • Premium tutorials
  • Access to repositories
  • Private Discord