PHPackages                             addwiki/wikibase-datamodel - 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. addwiki/wikibase-datamodel

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

addwiki/wikibase-datamodel
==========================

A Wikibase datamodel

3.1.0(1y ago)044421GPL-2.0-or-laterPHPPHP &gt;=8.1

Since Jul 12Pushed 1y ago2 watchersCompare

[ Source](https://github.com/addwiki/wikibase-datamodel)[ Packagist](https://packagist.org/packages/addwiki/wikibase-datamodel)[ RSS](/packages/addwiki-wikibase-datamodel/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (1)Dependencies (7)Versions (2)Used By (1)

wikibase-datamodel
==================

[](#wikibase-datamodel)

[![GitHub issue custom search in repo](https://camo.githubusercontent.com/fa56c4ed92c48121b8d910f3104d0242845c7f49a50418478ecb55df5e998ebd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d7365617263682f61646477696b692f61646477696b693f6c6162656c3d6973737565732671756572793d6973253341697373756525323069732533416f70656e25323025354277696b69626173652d646174616d6f64656c253544)](https://github.com/addwiki/addwiki/issues?q=is%3Aissue+is%3Aopen+%5Bwikibase-datamodel%5D+)[![Latest Stable Version](https://camo.githubusercontent.com/e4ba5f7afa9143d2163479fbd0c55c94dba334533712a824f30bf177b3f1178b/68747470733a2f2f706f7365722e707567782e6f72672f61646477696b692f77696b69626173652d646174616d6f64656c2f76657273696f6e2e706e67)](https://packagist.org/packages/addwiki/wikibase-datamodel)[![Download count](https://camo.githubusercontent.com/7eb9fdfb3d7d98808f7919aa49b61234a3e1a098e90a5a575cc00018ac234904/68747470733a2f2f706f7365722e707567782e6f72672f61646477696b692f77696b69626173652d646174616d6f64656c2f642f746f74616c2e706e67)](https://packagist.org/packages/addwiki/wikibase-datamodel)

Issue tracker:

This library is generally only for use by other addwiki libraries.

There are probably not many usecases where you would want to install this package alone.

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

[](#installation)

Use composer to install the library and all its dependencies:

```
composer require "addwiki/wikibase-datamodel:~3.0"

```

#### Load

[](#load)

```
require_once( __DIR__ . '/vendor/autoload.php' );
```

External Libraries
------------------

[](#external-libraries)

Some code, such as `MediaInfo` realted code is pulled in from MediaWiki extensions and can be found in the `/lib` directory. This is because this code is not availible as a library, but there is little point in rewriting it...

This code can be updated using the `sync-copied-files` composer command.

- MediaInfo is pinned at `d86d961a0eb0c28e9b5d8ce600c64a9dae973533` which is just before the 2021 DataModel changes, which this library is not yet adapted for.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

666d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccc2c40c150701b6b72f598f342b6a7aa57d7ab06a08c5f085f6add75094b82b?d=identicon)[addshore](/maintainers/addshore)

---

Top Contributors

[![addshore](https://avatars.githubusercontent.com/u/3308769?v=4)](https://github.com/addshore "addshore (1 commits)")

---

Tags

mediawikiwikidatawikibaseDataModel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/addwiki-wikibase-datamodel/health.svg)

```
[![Health](https://phpackages.com/badges/addwiki-wikibase-datamodel/health.svg)](https://phpackages.com/packages/addwiki-wikibase-datamodel)
```

###  Alternatives

[data-values/data-values

Defines the DataValue interface and some trivial implementations

171.0M22](/packages/data-values-data-values)[addwiki/wikibase-api

Wikibase API library

264.7k3](/packages/addwiki-wikibase-api)[wikibase/data-model-serialization

Serializers and deserializers for the Wikibase DataModel

10196.3k8](/packages/wikibase-data-model-serialization)[mediawiki/mediawiki-codesniffer

MediaWiki CodeSniffer Standards

332.9M317](/packages/mediawiki-mediawiki-codesniffer)[wikibase/data-model

PHP implementation of the Wikibase DataModel

37243.3k23](/packages/wikibase-data-model)[mediawiki/chameleon-skin

A highly flexible MediaWiki skin using Bootstrap 4

12481.8k2](/packages/mediawiki-chameleon-skin)

PHPackages © 2026

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