jeroen / wikibase-data-fixtures
Fixtures for Wikibase data that can be used in tests or examples
Requires
- php: >=5.5.0
- wikibase/data-model: ~6.0|~5.0|~4.0|~3.0|~2.6
Requires (Dev)
- phpunit/phpunit: ~5.3|~4.8
README
Wikibase DataFixtures contains Wikibase data meant for use in tests and examples.
Installation
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" } }
Compatibility
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
Running the tests
phpunit
Release notes
Version 1.2.0 (2017-02-28)
- Allow installation together with Wikibase DataModel 6.x
- Allow installation together with Wikibase DataModel 5.x
- Dropped support for PHP 5.4
Version 1.1.0 (2015-11-22)
- Added items
Wikidata
,WikimediaProject
,OnlineDatabase
andKnowledgeBase
.
Version 1.0.0 (2015-11-03)
- Allow installation together with Wikibase DataModel 4.x
- Allow installation together with Wikibase DataModel 3.x
Version 0.2.4 (2014-10-21)
- Allow installation together with Wikibase DataModel 2.x
Version 0.2.3 (2014-10-03)
- Added sitelinks to the Berlin item
Version 0.2.2 (2014-09-11)
- Use only stable versions of Wikibase DataModel 1.x
- Added
PostalCodeProperty
- Added postal code to
Berlin
Version 0.2.1 (2014-08-27)
- Added compatibility with latest Wikibase DataModel changes
Version 0.2 (2014-08-19)
- Renamed
Country
toCountryProperty
- Added
InstanceOfProperty
,City
andState
Version 0.1 (2014-08-17)
- Initial release