Manual:checkDependencies.php
From Linux Web Expert
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.34
<translate> MediaWiki version:</translate> |
MediaWiki file: checkDependencies.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.41.1 • 1.40.3 • 1.39.7 |
Classes: | CheckDependencies |
Details
checkDependencies.php is a maintenance script that checks dependencies for extensions and skins, mostly without loading them.
Options
Option | Description | Required |
---|---|---|
--extensions | Comma separated list of extensions to check | <translate> Optional</translate> |
--skins | Comma separated list of skins to check | <translate> Optional</translate> |
--json | Output in JSON | <translate> Optional</translate> |
--dev | Check development dependencies, too | <translate> Optional</translate> |
Usage
php maintenance/checkDependencies.php [ --extensions| --skins| --json| --dev ]
Output human-readable format
Terminal
$ php maintenance/checkDependencies.php --extensions MobileFrontend,VisualEditor,WikiSEO,DiscussionTools Extensions ========== MobileFrontend: present (because: MobileFrontend) VisualEditor: present (because: VisualEditor,DiscussionTools) WikiSEO: missing (because: WikiSEO) DiscussionTools: present (because: DiscussionTools) Linter: present (because: DiscussionTools)
Output JSON
Terminal
$ php maintenance/checkDependencies.php --extensions MobileFrontend,VisualEditor,WikiSEO,DiscussionTools --json { "extensions": { "MobileFrontend": { "status": "present", "why": [ "MobileFrontend" ] }, "VisualEditor": { "status": "present", "why": [ "VisualEditor", "DiscussionTools" ] }, "WikiSEO": { "status": "missing", "why": [ "WikiSEO" ] }, "DiscussionTools": { "status": "present", "why": [ "DiscussionTools" ] }, "Linter": { "status": "present", "why": [ "DiscussionTools" ] } } }