PHPackages                             dnb/mediawiki-gnd - 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. dnb/mediawiki-gnd

ActiveMediawiki-extension[Utility &amp; Helpers](/categories/utility)

dnb/mediawiki-gnd
=================

Adds scripts to import GND items into Wikibase Repository

42453[2 PRs](https://github.com/ProfessionalWiki/GND/pulls)PHP

Since Jan 14Pushed 2y ago5 watchersCompare

[ Source](https://github.com/ProfessionalWiki/GND)[ Packagist](https://packagist.org/packages/dnb/mediawiki-gnd)[ RSS](/packages/dnb-mediawiki-gnd/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

GND MediaWiki extension
=======================

[](#gnd-mediawiki-extension)

[![GitHub Workflow Status](https://camo.githubusercontent.com/ca44159eaa3019bea523fabe4cc11a62f405a328f48c2690c39f59f1dfb4b8d2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f50726f66657373696f6e616c57696b692f474e442f63692e796d6c3f6272616e63683d6d6173746572)](https://github.com/ProfessionalWiki/GND/actions?query=workflow%3ACI)[![codecov](https://camo.githubusercontent.com/25faf280fb8fb22906dd8c1148e1c7d20be96ad97b7d64a8816fb68ec45916b7/68747470733a2f2f636f6465636f762e696f2f67682f50726f66657373696f6e616c57696b692f474e442f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/ProfessionalWiki/GND)[![Latest Stable Version](https://camo.githubusercontent.com/51a90fd418620a14fef8c412199654876937bf14a74d435d523feadb7904afe8/68747470733a2f2f706f7365722e707567782e6f72672f646e622f6d6564696177696b692d676e642f76657273696f6e2e706e67)](https://packagist.org/packages/dnb/mediawiki-gnd)[![Download count](https://camo.githubusercontent.com/37f3b1ae7e610d2b00e22912095107cde75e8a55d127b803e3dbceb6d39fa250/68747470733a2f2f706f7365722e707567782e6f72672f646e622f6d6564696177696b692d676e642f642f746f74616c2e706e67)](https://packagist.org/packages/dnb/mediawiki-gnd)

[MediaWiki](https://www.mediawiki.org) extension that adds scripts to import GND PICA+ into [Wikibase](https://wikibase.consulting/what-is-wikibase/).

The GND extension was created by [Professional.Wiki](https://professional.wiki) for the [German National Library](https://www.dnb.de/EN/Home/home_node.html). [Professional.Wiki](https://professional.wiki) provides commercial [Wikibase hosting](https://professional.wiki/en/hosting/wikibase), [MediaWiki development](https://professional.wiki/en/mediawiki-development) and support.

Platform requirements
---------------------

[](#platform-requirements)

- [PHP](https://www.php.net) 7.4 or later, including PHP 8
- [MediaWiki](https://www.mediawiki.org) 1.35
- [Wikibase Repository](https://www.mediawiki.org/wiki/Extension:Wikibase_Repository) REL1\_35

See the [release notes](#release-notes) for more information on the different versions of this extension.

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

[](#installation)

First install MediaWiki and Wikibase Repository.

The recommended way to install the GND extension is using [Composer](https://getcomposer.org) with [MediaWiki's built-in support for Composer](https://professional.wiki/en/articles/installing-mediawiki-extensions-with-composer).

On the commandline, go to your wikis root directory. Then run these two commands:

```
COMPOSER=composer.local.json composer require --no-update dnb/mediawiki-gnd:*
composer update dnb/mediawiki-gnd --no-dev -o
```

**Enabling the extension**

Then enable the extension by adding the following to the bottom of your wikis `LocalSettings.php` file:

```
wfLoadExtension( 'GND' );
```

You can verify the extension was enabled successfully by opening your wikis Special:Version page in your browser.

Usage: GND doku function
------------------------

[](#usage-gnd-doku-function)

```
{{#gnd_doku:language=en|codings=PICA3, PICA+}}

```

Parameters:

- `language`. Optional language code. Default `de`. Supports `en` and `de`.
- `codings`. Optional. Coding columns to show. Default `PICA3, PICA+, MARC21`. Supports these 3 values.

Usage: GND import
-----------------

[](#usage-gnd-import)

GND import via `ImportGndDump.php`. Example:

```
php extensions/GND/maintenance/ImportGndDump.php --path extensions/GND/data/GND.json --limit 10

```

The import script expects a file with one JSON structure per line. Example of a valid file:

To see all availble options, run:

```
php extensions/GND/maintenance/ImportGndDump.php --help

```

GND Vocabulary syncronisation
-----------------------------

[](#gnd-vocabulary-syncronisation)

Doku-wiki vocabulary sync via `SyncDokuVocabulary`. Example:

```
php extensions/GND/maintenance/SyncDokuVocabulary.php

```

Usage: Changing item properties to strings
------------------------------------------

[](#usage-changing-item-properties-to-strings)

Property IDs provided in comma seperated list. Spacing does not matter.

```
php extensions/GND/maintenance/ItemPropertiesToStrings.php --properties "P1, P2, P3"

```

### Running tests and CI checks

[](#running-tests-and-ci-checks)

You can use the `Makefile` by running make commands in the `ExternalContent` directory.

- `make ci`: Run everything
- `make test`: Run all tests
- `make cs`: Run all style checks and static analysis

Release notes
-------------

[](#release-notes)

### Version 0.1.0

[](#version-010)

Under development

- Initial release for MediaWiki/Wikibase 1.35

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 97.6% 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.

### Community

Maintainers

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

---

Top Contributors

[![JeroenDeDauw](https://avatars.githubusercontent.com/u/146040?v=4)](https://github.com/JeroenDeDauw "JeroenDeDauw (160 commits)")[![tbauer2811](https://avatars.githubusercontent.com/u/19687924?v=4)](https://github.com/tbauer2811 "tbauer2811 (2 commits)")[![malberts](https://avatars.githubusercontent.com/u/1428594?v=4)](https://github.com/malberts "malberts (1 commits)")[![Universal-Omega](https://avatars.githubusercontent.com/u/54654040?v=4)](https://github.com/Universal-Omega "Universal-Omega (1 commits)")

---

Tags

gndmediawikimediawiki-extensionwikibasewikibase-extension

### Embed Badge

![Health badge](/badges/dnb-mediawiki-gnd/health.svg)

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

PHPackages © 2026

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