Help:Installation/Using Composer with MediaWiki 1.22 - 1.24

Install
Use these instructions for a new SMW installation.


 * 1) Install Composer - please follow the instructions at installing Composer to do this.
 * 2) Check your MediaWiki version on special page "Special:Version" to ensure compatibility. See also Update to the appropriate version of MediaWiki.
 * 3) Run the installation script from the base directory of your MediaWiki installation:
 * The version stated in the line above is provided as an example. See the Releases page on GitHub for newer releases. If there is e.g. a release called "SMW 2.2.0" you will have to replace  by  etc. Please always omit the bugfix release number, i.e. the third number.
 * 1) Run the setup script from the base directory of your MediaWiki installation:
 * 2) Add a call to   to the end of the "LocalSettings.php" file.   takes in the domain name of the wiki; a wiki located at "example.org", for instance, should have the following call:
 * The calls  must neither be added for Semantic MediaWiki nor for Validator since Composer loads the extensions automatically.
 * 1) Add optional settings apart from one exception to the "LocalSettings.php" file as desired below the   call.
 * 2) In case you want to use additional semantic extensions which are not installed via Composer like e.g. Semantic Drilldown you still have to invoke them by adding the respective line   to you "LocalSettings.php" file below the   call.
 * 3) See the page "Special:Version" on your wiki to verify that the extension is successfully installed.
 * 4) Test your installation as described on the help page about testing SMW.
 * 5) Done!
 * 1) See the page "Special:Version" on your wiki to verify that the extension is successfully installed.
 * 2) Test your installation as described on the help page about testing SMW.
 * 3) Done!

Update
Use these instructions to update an existing SMW installation.


 * 1) Backup your database and installation.
 * 2) Run the update script from the base directory of your MediaWiki installation:
 * 3) See the page "Special:Version" on your wiki to verify that the extension was successfully updated.
 * 4) Run the setup script from the base directory of your MediaWiki installation:
 * 5) Run the refresh database script from the base directory of your MediaWiki installation:
 * 6) Done!
 * 1) Run the refresh database script from the base directory of your MediaWiki installation:
 * 2) Done!
 * 1) Done!

MW 1.25+
Starting with MW 1.25+ MediaWiki itself uses Composer to facilitate components and packages. In case you see the following message [RuntimeException] The lock file does not contain require-dev information, run install with the --no-dev option or run update to install those packages. when trying to run, you first have to execute   before you are able to add extensions via Composer. See also the help page on installing SMW on MediaWiki 1.25.+.

Upgrade
See the help page on upgrading from SMW 1.9+ for MW 1.22+