PHPackages                             wikibase/wikibase - 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. [Database &amp; ORM](/categories/database)
4. /
5. wikibase/wikibase

ActiveMediawiki-extension[Database &amp; ORM](/categories/database)

wikibase/wikibase
=================

Structured data repository for MediaWiki

13911.1k62[10 PRs](https://github.com/wikimedia/mediawiki-extensions-Wikibase/pulls)1PHPCI passing

Since Mar 15Pushed 6d ago19 watchersCompare

[ Source](https://github.com/wikimedia/mediawiki-extensions-Wikibase)[ Packagist](https://packagist.org/packages/wikibase/wikibase)[ RSS](/packages/wikibase-wikibase/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (403)Used By (1)Security (1)

---

Introduction to Wikibase
========================

[](#introduction-to-wikibase)

[![Wikibase Secondary CI](https://github.com/wikimedia/Wikibase/actions/workflows/secondaryCI.yml/badge.svg)](https://github.com/wikimedia/Wikibase/actions/workflows/secondaryCI.yml)

The Wikibase.git package is part of the [Wikibase software](http://wikiba.se/) and consists of multiple MediaWiki extensions and other components.

The package allows for the creation, maintenance, dissemination, and usage of structured data in MediaWiki.

High level documentation can be found on [wikiba.se](https://wikiba.se/) and [mediawiki.org](https://www.mediawiki.org/wiki/Wikibase). Lower level documentation can be found on doc.wikimedia.org [here](https://doc.wikimedia.org/Wikibase/master/php/).

Install
-------

[](#install)

Wikibase depends on various [composer](http://getcomposer.org/) libraries.

Once you have Wikibase in your MediaWiki extensions directory, go to the root of your MediaWiki folder, and if `composer.local.json` does not yet exist there, copy `composer.local.json-sample` to `composer.local.json`(see [MediaWiki's Composer documentation](https://www.mediawiki.org/wiki/Composer#Using_composer-merge-plugin)).

Then run:

```
composer install
```

If you already ran `composer install` during the installation of MediaWiki, run instead:

```
composer update
```

> When using ways to combine MediaWiki with the extension folders (e.g. symlinks or docker volumes) please make sure that the folders are available to composer in the same structure they are available to the webserver, too.

This will install both Wikibase Client and Repo together on the same wiki.

If you want to only have one or the other, then set `$wgEnableWikibaseRepo = false` or `$wgEnableWikibaseClient` to false for the one you don't want to enable.

Wikibase also depends on several JavaScript libraries. They are included in this repository as submodules. To fetch files of these libraries, you might need to run, in the Wikibase extension folder, the following command:

```
git submodule update --init
```

### Development

[](#development)

Wikibase uses tools to ensure the quality of software developed. To invoke these tools, inside the Wikibase folder, run:

```
composer install
composer run-script test
```

> As this uses development dependencies and custom configuration, executing it from the MediaWiki root folder (via `composer run-script test extensions/Wikibase`) will not work satisfactorily

#### JavaScript

[](#javascript)

Wikibase makes use of frontend software from various eras - resulting in a heterogenous technological landscape.

Some notable (not a comprehensive list) mentions are

- the use of [ResourceLoader](https://www.mediawiki.org/wiki/ResourceLoader) to
    - allow for concatenation and minification of code neatly organized in separate files
    - translate less to CSS
    - model module inter-dependencies
    - handle delivery to the client through MediaWiki
- use of the [Javascript interfaces exposed by MediaWiki](https://www.mediawiki.org/wiki/Manual:Interface/JavaScript); e.g. `mw.hook` in [EntityInitializer](./repo/resources/wikibase.EntityInitializer.js)
- frontend components making heavy use of jQuery; e.g. for so called [experts](repo/resources/experts/Entity.js)
- the use of qunit to test this code; e.g. in `repo/tests/qunit`, available [via a special page](https://www.mediawiki.org/wiki/Manual:JavaScript_unit_testing)
- [vue.js](https://vuejs.org/guide/introduction.html) as a frontend framework; e.g. in [data-bridge](./client/data-bridge), the [Lexeme](https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/WikibaseLexeme/) extension, and [termbox](https://gerrit.wikimedia.org/g/wikibase/termbox)

#### Adding language code support in Wikibase

[](#adding-language-code-support-in-wikibase)

To add support for a new language code (for labels or monolingual text) please refer to the [detailed documentation](https://www.mediawiki.org/wiki/Manual:Adding_and_removing_languages#Wikibase).

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance64

Regular maintenance activity

Popularity43

Moderate usage in the ecosystem

Community36

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor4

4 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.

### 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)

![](https://www.gravatar.com/avatar/5406ed1d40d50ffc61d67e9f5149914dbfe0b8a52bdf297299f5ccfab0a73d91?d=identicon)[thiemowmde](/maintainers/thiemowmde)

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

---

Top Contributors

[![translatewiki](https://avatars.githubusercontent.com/u/24829418?v=4)](https://github.com/translatewiki "translatewiki (4064 commits)")[![JeroenDeDauw](https://avatars.githubusercontent.com/u/146040?v=4)](https://github.com/JeroenDeDauw "JeroenDeDauw (4009 commits)")[![thiemowmde](https://avatars.githubusercontent.com/u/6576639?v=4)](https://github.com/thiemowmde "thiemowmde (3173 commits)")[![lucaswerkmeister](https://avatars.githubusercontent.com/u/2346599?v=4)](https://github.com/lucaswerkmeister "lucaswerkmeister (2004 commits)")[![addshore](https://avatars.githubusercontent.com/u/3308769?v=4)](https://github.com/addshore "addshore (1369 commits)")[![mariushoch](https://avatars.githubusercontent.com/u/2446964?v=4)](https://github.com/mariushoch "mariushoch (1323 commits)")[![jakobw](https://avatars.githubusercontent.com/u/453024?v=4)](https://github.com/jakobw "jakobw (1315 commits)")[![tobijat](https://avatars.githubusercontent.com/u/2997252?v=4)](https://github.com/tobijat "tobijat (1299 commits)")[![DanweDE](https://avatars.githubusercontent.com/u/101926?v=4)](https://github.com/DanweDE "DanweDE (966 commits)")[![Ladsgroup](https://avatars.githubusercontent.com/u/5351225?v=4)](https://github.com/Ladsgroup "Ladsgroup (799 commits)")[![adrianheine](https://avatars.githubusercontent.com/u/139208?v=4)](https://github.com/adrianheine "adrianheine (754 commits)")[![manicki](https://avatars.githubusercontent.com/u/3524114?v=4)](https://github.com/manicki "manicki (683 commits)")[![Benestar](https://avatars.githubusercontent.com/u/2998254?v=4)](https://github.com/Benestar "Benestar (492 commits)")[![micgro42](https://avatars.githubusercontent.com/u/7372507?v=4)](https://github.com/micgro42 "micgro42 (490 commits)")[![outdooracorn](https://avatars.githubusercontent.com/u/43674967?v=4)](https://github.com/outdooracorn "outdooracorn (458 commits)")[![snaterlicious](https://avatars.githubusercontent.com/u/5755120?v=4)](https://github.com/snaterlicious "snaterlicious (411 commits)")[![MuhammadJaziraly](https://avatars.githubusercontent.com/u/119682884?v=4)](https://github.com/MuhammadJaziraly "MuhammadJaziraly (378 commits)")[![Silvan-WMDE](https://avatars.githubusercontent.com/u/59574251?v=4)](https://github.com/Silvan-WMDE "Silvan-WMDE (316 commits)")[![wiese](https://avatars.githubusercontent.com/u/167557?v=4)](https://github.com/wiese "wiese (310 commits)")[![umherirrender](https://avatars.githubusercontent.com/u/1174884?v=4)](https://github.com/umherirrender "umherirrender (298 commits)")

### Embed Badge

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

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198628.3k10](/packages/pgvector-pgvector)

PHPackages © 2026

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