mwstake/mediawiki-component-utils

2.0.4 2023-03-17 10:44 UTC

This package is auto-updated.

Last update: 2024-03-11 07:08:59 UTC


README

Utils for MediaWiki

This code is meant to be executed within the MediaWiki application context. No standalone usage is intended.

Use in a MediaWiki extension

Add "mwstake/mediawiki-component-utils": "~2.0" to the require section of your composer.json file.

Since 2.0 explicit initialization is required. This can be achived by

  • either adding "callback": "mwsInitComponents" to your extension.json/skin.json
  • or calling mwsInitComponents(); within you extensions/skins custom callback method

See also mwstake/mediawiki-componentloader.