PHPackages                             wikibase/data-model-services - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. wikibase/data-model-services

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wikibase/data-model-services
============================

Services around the Wikibase DataModel

5.4.0(5y ago)3156.3k↓33.3%8[5 PRs](https://github.com/wmde/WikibaseDataModelServices/pulls)6GPL-2.0-or-laterPHPPHP &gt;=7.2CI failing

Since Jul 28Pushed 3mo ago22 watchersCompare

[ Source](https://github.com/wmde/WikibaseDataModelServices)[ Packagist](https://packagist.org/packages/wikibase/data-model-services)[ Docs](https://github.com/wmde/WikibaseDataModelServices)[ RSS](/packages/wikibase-data-model-services/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (42)Used By (6)

Wikibase DataModel Services
===========================

[](#wikibase-datamodel-services)

[![Build Status](https://github.com/wmde/WikibaseDataModelServices/actions/workflows/lint-and-test.yaml/badge.svg?branch=master)](https://github.com/wmde/WikibaseDataModelServices/actions/workflows/lint-and-test.yaml)[![Download count](https://camo.githubusercontent.com/6d3fe6cdaa0f00bee66517f0b72c2085a193020f1b9012e70d1434e3a054818f/68747470733a2f2f706f7365722e707567782e6f72672f77696b69626173652f646174612d6d6f64656c2d73657276696365732f642f746f74616c2e706e67)](https://packagist.org/packages/wikibase/data-model-services)[![License](https://camo.githubusercontent.com/dbc40cf8601ac3981ada768ded7603e7732b1aa599c895d426426ba3b8fec8b4/68747470733a2f2f706f7365722e707567782e6f72672f77696b69626173652f646174612d6d6f64656c2d73657276696365732f6c6963656e73652e737667)](https://packagist.org/packages/wikibase/data-model-services)

[![Latest Stable Version](https://camo.githubusercontent.com/ae78550aa8e3e5bcfa850a1d73edd539651500e8cf69933aa5954c8172b1cc78/68747470733a2f2f706f7365722e707567782e6f72672f77696b69626173652f646174612d6d6f64656c2d73657276696365732f76657273696f6e2e706e67)](https://packagist.org/packages/wikibase/data-model-services)[![Latest Unstable Version](https://camo.githubusercontent.com/60fe0f77fbe39e7a91058c1d916ce503c5d03af51e97f3b020e86c51959b1788/68747470733a2f2f706f7365722e707567782e6f72672f77696b69626173652f646174612d6d6f64656c2d73657276696365732f762f756e737461626c652e737667)](//packagist.org/packages/wikibase/data-model-services)

**Wikibase DataModel Services** is a collection of services around [Wikibase DataModel](https://github.com/wmde/WikibaseDataModel). It is part of the [Wikibase software](http://wikiba.se/).

Recent changes can be found in the [release notes](RELEASE-NOTES.md).

Note that this repository is a mirror of part of the upstream [Wikibase project](https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Wikibase/+/refs/heads/master/lib/packages/wikibase/data-model-services/) on Gerrit. Contributions should be made to the directories there using MediaWiki's [Gerrit process](https://www.mediawiki.org/wiki/Gerrit).

Library contents
----------------

[](#library-contents)

In order to be allowed in this package, code needs to:

- Be using Wikibase DataModel and deal with the core Wikibase domain
- Not belong to a more specific component
- Not introduce heavy dependencies to this component
- Not be presentation code

Installation
------------

[](#installation)

You can use [Composer](http://getcomposer.org/) 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.

### Composer

[](#composer)

To add this package as a local, per-project dependency to your project, simply add a dependency on `wikibase/data-model-services` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on Wikibase DataModel Services 3.x:

```
{
    "require": {
        "wikibase/data-model-services": "~5.0"
    }
}
```

### Manual

[](#manual)

Get the Wikibase DataModel Services code, either via git, or some other means. Also get all dependencies. You can find a list of the dependencies in the "require" section of the composer.json file. The "autoload" section of this file specifies how to load the resources provide by this library.

Tests
-----

[](#tests)

This library comes with a set up PHPUnit tests that cover all non-trivial code. Additionally, code style checks by PHPCS and PHPMD are supported. The configuration for all 3 these tools can be found in the root directory. You can use the tools in their standard manner, though can run all checks required by our CI by executing `composer ci`. To just run tests use `composer test`, and to just run style checks use `composer cs`.

Contributing
------------

[](#contributing)

This repository is a mirror of part of the upstream [Wikibase project](https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Wikibase/+/refs/heads/master/lib/packages/wikibase/data-model-services/) on gerrit. Contributions should be made to the directories there using MediaWiki's [Gerrit process](https://www.mediawiki.org/wiki/Gerrit).

Links
-----

[](#links)

- [Wikibase DataModel Services on Packagist](https://packagist.org/packages/wikibase/data-model-services)

See also
--------

[](#see-also)

- [Wikibase DataModel](https://github.com/wmde/WikibaseDataModel)
- [Wikibase DataModel Serialization](https://github.com/wmde/WikibaseDataModelSerialization)
- [Wikibase Internal Serialization](https://github.com/wmde/WikibaseInternalSerialization)

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance54

Moderate activity, may be stable

Popularity35

Limited adoption so far

Community36

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~118 days

Recently: every ~442 days

Total

30

Last Release

517d ago

Major Versions

1.1.0 → 2.0.02015-09-02

2.0.1 → 3.0.02015-09-16

3.15.0 → 4.0.02020-01-07

4.0.0 → 5.0.02020-01-24

5.4.0 → v6.x-dev2024-12-17

PHP version history (7 changes)1.0.0PHP &gt;=5.3.0

3.7.0PHP &gt;=5.5.0

3.9.0PHP &gt;=5.5.9

3.11.0PHP &gt;=5.6.0

3.13.0PHP &gt;=5.6.99

4.0.0PHP &gt;=7.0

5.0.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/451bd4039d530fed8f9c3da91bfa519233a397d2182cdfdcad700f6cfea19b7f?d=identicon)[Jeroen De Dauw](/maintainers/Jeroen%20De%20Dauw)

![](https://www.gravatar.com/avatar/054adb441e7ee248ec924bc45fa793835c284710eb31627587fa5de21bab9e96?d=identicon)[wmde](/maintainers/wmde)

---

Top Contributors

[![JeroenDeDauw](https://avatars.githubusercontent.com/u/146040?v=4)](https://github.com/JeroenDeDauw "JeroenDeDauw (139 commits)")[![thiemowmde](https://avatars.githubusercontent.com/u/6576639?v=4)](https://github.com/thiemowmde "thiemowmde (115 commits)")[![addshore](https://avatars.githubusercontent.com/u/3308769?v=4)](https://github.com/addshore "addshore (69 commits)")[![manicki](https://avatars.githubusercontent.com/u/3524114?v=4)](https://github.com/manicki "manicki (34 commits)")[![Benestar](https://avatars.githubusercontent.com/u/2998254?v=4)](https://github.com/Benestar "Benestar (33 commits)")[![mariushoch](https://avatars.githubusercontent.com/u/2446964?v=4)](https://github.com/mariushoch "mariushoch (32 commits)")[![Ladsgroup](https://avatars.githubusercontent.com/u/5351225?v=4)](https://github.com/Ladsgroup "Ladsgroup (29 commits)")[![JonasKress](https://avatars.githubusercontent.com/u/13198391?v=4)](https://github.com/JonasKress "JonasKress (14 commits)")[![lucaswerkmeister](https://avatars.githubusercontent.com/u/2346599?v=4)](https://github.com/lucaswerkmeister "lucaswerkmeister (14 commits)")[![jakobw](https://avatars.githubusercontent.com/u/453024?v=4)](https://github.com/jakobw "jakobw (11 commits)")[![umherirrender](https://avatars.githubusercontent.com/u/1174884?v=4)](https://github.com/umherirrender "umherirrender (9 commits)")[![filbertkm](https://avatars.githubusercontent.com/u/135401?v=4)](https://github.com/filbertkm "filbertkm (7 commits)")[![seanleong-WMDE](https://avatars.githubusercontent.com/u/177314006?v=4)](https://github.com/seanleong-WMDE "seanleong-WMDE (5 commits)")[![reedy](https://avatars.githubusercontent.com/u/67615?v=4)](https://github.com/reedy "reedy (5 commits)")[![codders](https://avatars.githubusercontent.com/u/17782?v=4)](https://github.com/codders "codders (4 commits)")[![Silvan-WMDE](https://avatars.githubusercontent.com/u/59574251?v=4)](https://github.com/Silvan-WMDE "Silvan-WMDE (3 commits)")[![tgr](https://avatars.githubusercontent.com/u/145412?v=4)](https://github.com/tgr "tgr (3 commits)")[![rosalieper](https://avatars.githubusercontent.com/u/15235452?v=4)](https://github.com/rosalieper "rosalieper (3 commits)")[![chukarave](https://avatars.githubusercontent.com/u/7420952?v=4)](https://github.com/chukarave "chukarave (2 commits)")[![Krinkle](https://avatars.githubusercontent.com/u/156867?v=4)](https://github.com/Krinkle "Krinkle (2 commits)")

---

Tags

wikidatawikibaseDataModel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wikibase-data-model-services/health.svg)

```
[![Health](https://phpackages.com/badges/wikibase-data-model-services/health.svg)](https://phpackages.com/packages/wikibase-data-model-services)
```

###  Alternatives

[wikibase/data-model

PHP implementation of the Wikibase DataModel

37243.3k23](/packages/wikibase-data-model)[data-values/data-values

Defines the DataValue interface and some trivial implementations

171.0M22](/packages/data-values-data-values)[data-values/geo

Geographical value objects, parsers and formatters

20631.0k18](/packages/data-values-geo)[wikibase/data-model-serialization

Serializers and deserializers for the Wikibase DataModel

10196.3k8](/packages/wikibase-data-model-serialization)[data-values/number

Numerical value objects, parsers and formatters

18303.0k14](/packages/data-values-number)[zero-to-prod/data-model

Transforms Data into Type-Safe DTOs.

14226.2k32](/packages/zero-to-prod-data-model)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
