wikibase / term-store
Tiny Wikibase library that defines interfaces for persisting terms of Items and Properties
Requires
- php: ^7.2
- wikibase/data-model: ~9.1
Requires (Dev)
- mediawiki/mediawiki-codesniffer: ~23.0
- ockcyp/covers-validator: ~1.1
- phpstan/phpstan: ~0.9.2
- phpunit/phpunit: ^6.5.14
- slevomat/coding-standard: ^3.0|~4.5
- squizlabs/php_codesniffer: ~3.3
README
DEPRECATED: Similar interfaces have been added to wikibase/data-model-services and continue to be maintained as part of that library.
Wikibase TermStore
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 FakeThrowingPropertyTermStore
- throws an exception when one of its methods is invokedInMemoryItemTermStore
- simple in memory FakeThrowingItemTermStore
- 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
composer test
You can run the style checks by executing
composer cs
To run all CI checks, execute
composer ci
You can also invoke PHPUnit directly to pass it arguments, as follows
vendor/bin/phpunit --filter SomeClassNameOrFilter