Mohammad Aghayari Mohammad Aghayari - 1 year ago 186
PHP Question

Difference between composer update and composer global update

What are the differences between

composer update
composer global update
in yii2?

Answer Source

It's not anything to do with Yii directly.

Composer allows you to install dependencies globally or per-project (the default).

This is merely a helper to manage a project stored in a central location that can hold CLI tools or Composer plugins that you want to have available everywhere.

You might want to install something like phpunit or phpcs globally (so it's available for every project) whereas installing a library or framework that you need for your project should be a per-project installation.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download