Skip to content
This repository has been archived by the owner on Jul 20, 2019. It is now read-only.

wmde/mediawiki-term-store

Repository files navigation

Wikibase MediaWiki TermStore

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •