Help:Installation/Installation commands for Composer

From semantic-mediawiki.org
< Installation(Redirected from Help:Installation/Installation commands for Composer)
Administrator manualInstallationHelp:Installation/Installation commands for Composer

This help page lists the commands for installing semantic extensions supporting installation via Composer (Current: 14:24, 30 September 2017).

Just pick the lines for the extensions you would like to install and run them from the command line of you server from the base directory[1] of your wiki. Note that for some of the extensions mentioned you need to execute "update.php" afterwards to create the required database tables.

In case you would like to manually create the "composer.json" (≤ MW 1.23.x) or "composer.local.json" (≥ MW 1.24.x) file please refer to the respective help page.

Note that if you are using "composer.local.json" (≥ MW 1.24.x) instead of "composer.json" which is recommended you should manually create the file instead of issuing the commands shown on this page. If you continue to use "composer.json" you will have to run these commands after every update or upgrade of MediaWiki.
Composer is only available locally[2] on the server
php composer.phar require mediawiki/semantic-media-wiki "~2.5"
php composer.phar require mediawiki/semantic-breadcrumb-links "~1.4"
php composer.phar require mediawiki/semantic-extra-special-properties "~1.5"
php composer.phar require mediawiki/semantic-glossary "~2.2"
php composer.phar require mediawiki/semantic-interlanguage-links "~1.4"
php composer.phar require mediawiki/semantic-meta-tags "~1.4"
php composer.phar require mediawiki/semantic-result-formats "~2.5"
php composer.phar require mediawiki/semantic-watchlist "~1.1"
Composer is globally[3] available on the server
composer require mediawiki/semantic-media-wiki "~2.5"
composer require mediawiki/semantic-breadcrumb-links "~1.4"
composer require mediawiki/semantic-extra-special-properties "~1.5"
composer require mediawiki/semantic-glossary "~2.2"
composer require mediawiki/semantic-interlanguage-links "~1.4"
composer require mediawiki/semantic-meta-tags "~1.4"
composer require mediawiki/semantic-result-formats "~2.5"
composer require mediawiki/semantic-watchlist "~1.1"
References
  1. This is the directory which contains the "LocalSettings.php" file.
  2. getcomposer.org: Installing Composer locally
  3. getcomposer.org: Installing Composer globally