Wikibase DataFixtures contains Wikibase data meant for use in tests and examples.
You can use Composer to download and install this package as well as its dependencies. Alternatively you can simply clone the git repository and take care of loading yourself.
To add this package as a local, per-project dependency to your project, simply add a
dependency on jeroen/wikibase-data-fixtures
to your project's composer.json
file.
Here is a minimal example of a composer.json
file that just defines a dependency on
Wikibase DataFixtures 1.0:
{
"require": {
"jeroen/wikibase-data-fixtures": "~1.0"
}
}
PHP 5.5 and above are supported.
Generally existing data will not be modified. If it is, the release notes will definitely mention
it, and the version number will be incremented appropriately. Changes to this library will come
mainly in the form of additions, not as changes or removals. If an Item
has a particular
Statement
, it will keep having it, even though additional statements might be added.
Running the tests
phpunit
- Allow installation together with Wikibase DataModel 6.x
- Allow installation together with Wikibase DataModel 5.x
- Dropped support for PHP 5.4
- Added items
Wikidata
,WikimediaProject
,OnlineDatabase
andKnowledgeBase
.
- Allow installation together with Wikibase DataModel 4.x
- Allow installation together with Wikibase DataModel 3.x
- Allow installation together with Wikibase DataModel 2.x
- Added sitelinks to the Berlin item
- Use only stable versions of Wikibase DataModel 1.x
- Added
PostalCodeProperty
- Added postal code to
Berlin
- Added compatibility with latest Wikibase DataModel changes
- Renamed
Country
toCountryProperty
- Added
InstanceOfProperty
,City
andState
- Initial release