Manual:checkDependencies.php

MediaWiki version:
1.34


DetailsEdit

checkDependencies.php is a maintenance script that checks dependencies for extensions and skins, mostly without loading them.

OptionsEdit

Option Description Required
--extensions Comma separated list of extensions to check Optional
--skins Comma separated list of skins to check Optional
--json Output in JSON Optional
--dev Check development dependencies, too Optional

UsageEdit

php maintenance/checkDependencies.php [ --extensions| --skins| --json| --dev ]


Output human-readable formatEdit

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 JSONEdit

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"
      ]
    }
  }
}

See alsoEdit