wikibase/mediawiki-term-store

This package is abandoned and no longer maintained. No replacement package was suggested.

Small library for persistence of Wikibase terms via MediaWikis database abstraction layer

dev-master / 0.1.x-dev 2019-05-24 13:18 UTC

This package is not auto-updated.

Last update: 2020-01-22 21:12:06 UTC


README

Build Status Latest Stable Version Download count Scrutinizer Code Quality

MediaWiki based implementation of Wikibase TermStore.

Usage

TODO

Installation

To use the Wikibase TermStore library in your project, simply add a dependency on wikibase/mediawiki-term-store to your project's composer.json file. Here is a minimal example of a composer.json file that just defines a dependency on wikibase/mediawiki-term-store 1.x:

{
    "require": {
        "wikibase/mediawiki-term-store": "~1.0"
    }
}

Development

Start by installing the project dependencies by executing

composer update

To get IDE autocompletion for MediaWiki, you can place a copy of MediaWiki inside the gitignored mediawiki directory.

git clone https://github.com/wikimedia/mediawiki.git

You can run the style checks by executing

make cs

Testing

Unit tests that do not depend on mediawiki core can be simply run with

make test

Unit tests that depend on mediawiki core must be in group 'MediaWikiCore' and can be run in the following way:

# execute once or only when you want to update mediawiki core version this library use to execute tests
MW=1.32.1 DBTYPE=sqlite make init_mw

# then to run unit tests, you can now execute
make test_mw