Extension:Wikibase DataModel

PHP implementation of the Wikibase DataModel.

Requirements
requires:


 * PHP 5.3 or above
 * Diff 0.6 or above
 * DataValues 0.1 alpha or above
 * (If used as MediaWiki extension: MediaWiki 1.16 or later)

As MediaWiki extension
Once you have downloaded the code, place the WikibaseDataModel directory within your MediaWiki 'extensions' directory. Then add the following code to your LocalSettings.php file:

As standalone library
Include WikibaseDataModel/WikibaseDataModel.php. This file includes an autoloader that registers all the classes of the library.

Tests
has PHPUnit tests that can be run using the phpunit.xml.dist file in the root directory of the library. Simply run "phpunit" in the root directory or run it from somewhere else specifying the location of the xml file using the "--configuration" option.

Authors
has been written by Jeroen De Dauw as Wikimedia Germany employee for the Wikidata project.