Help:Installation/Installation commands for Composer

From semantic-mediawiki.org
Jump to: navigation, search
InstallationHelp:Installation/Installation commands for Composer

This help page lists the commands for installing semantic extensions supporting installation via Composer (Current: 15:57, 5 November 2015).

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.3"
php composer.phar require mediawiki/semantic-breadcrumb-links "~1.1"
php composer.phar require mediawiki/semantic-extra-special-properties "~1.3"
php composer.phar require mediawiki/semantic-forms "~3.4"
php composer.phar require mediawiki/semantic-forms-select "~1.2"
php composer.phar require mediawiki/semantic-glossary "~1.1"
php composer.phar require mediawiki/semantic-interlanguage-links "~1.1"
php composer.phar require mediawiki/semantic-maps "~3.2"
php composer.phar require mediawiki/semantic-meta-tags "~1.1"
php composer.phar require mediawiki/semantic-result-formats "~2.3"
php composer.phar require mediawiki/semantic-signup "~1.0"
php composer.phar require mediawiki/semantic-watchlist "~1.0"
Composer is globally[3] available on the server
composer require mediawiki/semantic-media-wiki "~2.3"
composer require mediawiki/semantic-breadcrumb-links "~1.1"
composer require mediawiki/semantic-extra-special-properties "~1.3"
composer require mediawiki/semantic-forms "~3.4"
composer require mediawiki/semantic-forms-select "~1.2"
composer require mediawiki/semantic-glossary "~1.1"
composer require mediawiki/semantic-interlanguage-links "~1.1"
composer require mediawiki/semantic-maps "~3.2"
composer require mediawiki/semantic-meta-tags "~1.1"
composer require mediawiki/semantic-result-formats "~2.3"
composer require mediawiki/semantic-signup "~1.0"
composer require mediawiki/semantic-watchlist "~1.0"
References
  1. This is the directory which contains the "LocalSettings.php" file.
  2. getcomposer.org: Installing Composer locally
  3. getcomposer.org: Installing Composer globally