Skip to content
Small library for looking up terms by item or property id or finding ids by term
PHP Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.gitattributes
.gitignore
.scrutinizer.yml
.travis.yml
LICENSE
Makefile
README.md
composer.json
phpcs.xml
phpunit.xml.dist

README.md

Wikibase TermStore

Build Status Latest Stable Version Download count

Tiny Wikibase library that defines interfaces for persisting terms of Items and Properties.

Usage

Real implementations of the interface can be found in dependent packages.

This library does provide some trivial implementations, mainly to facilitate testing.

  • InMemoryPropertyTermStore - simple in memory Fake
  • ThrowingPropertyTermStore - throws an exception when one of its methods is invoked
  • InMemoryItemTermStore - simple in memory Fake
  • ThrowingItemTermStore - throws an exception when one of its methods is invoked

Installation

To use the Wikibase TermStore library in your project, simply add a dependency on wikibase/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/term-store 1.x:

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

Development

Start by installing the project dependencies by executing

composer update

You can run the tests by executing

make test

You can run the style checks by executing

make cs

To run all CI checks, execute

make ci

You can also invoke PHPUnit directly to pass it arguments, as follows

vendor/bin/phpunit --filter SomeClassNameOrFilter
You can’t perform that action at this time.