wikibase / mediawiki-term-store
Small library for persistence of Wikibase terms via MediaWikis database abstraction layer
Requires
- php: ^5.6.99|^7.0
- wikibase/data-model: ^9.1
- wikibase/term-store: ~1.0
Requires (Dev)
- mediawiki/mediawiki-codesniffer: ~23.0
- ockcyp/covers-validator: ~1.1
- phpunit/phpunit: ^6.5.14
- slevomat/coding-standard: ^3.0|~4.5
- squizlabs/php_codesniffer: ~3.3
This package is not auto-updated.
Last update: 2020-01-22 21:12:06 UTC
README
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