User:HTan (WMF)/en/Composer/facts

Composer is a dependency manager for PHP libraries. Starting with MediaWiki 1.25, MediaWiki core's external library dependencies are being managed with Composer.

There are multiple ways to install Composer, besides the most obvious way, sudo apt install composer.

If that doesn't work, or you do not have Homebrew installed

To enable Composer to discover and process the composer.json files that may be included in any and all of your locally installed extensions, add something like this to $IP/composer.local.json:

composer self-update --2

ser. In addition, it can be used to manage the installation of MediaWiki e

iki >= 1.35.2 (along with the RE

ir

brew install composer

so depending on the version of MediaWiki you are using, you may need to follow the wget instructions above instead to download Composer 1.x. To install using brew:

brew install composer