PHPackages                             professional-wiki/wikibase-export - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. professional-wiki/wikibase-export

ActiveMediawiki-extension[PDF &amp; Document Generation](/categories/documents)

professional-wiki/wikibase-export
=================================

Adds a user-friendly Wikibase export page

2.0.1(1y ago)36.7k↑50%3[3 issues](https://github.com/ProfessionalWiki/WikibaseExport/issues)GPL-2.0-or-laterPHPPHP &gt;=8.0CI failing

Since Nov 22Pushed 2mo ago6 watchersCompare

[ Source](https://github.com/ProfessionalWiki/WikibaseExport)[ Packagist](https://packagist.org/packages/professional-wiki/wikibase-export)[ Docs](https://professional.wiki/en/extension/wikibase-export)[ RSS](/packages/professional-wiki-wikibase-export/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (6)Used By (0)

Wikibase Export
===============

[](#wikibase-export)

[![GitHub Workflow Status](https://camo.githubusercontent.com/6e83e8ffc88959e076f10265543c7336e2ff043632ae8730ffee0b85a4d87f6f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f50726f66657373696f6e616c57696b692f57696b69626173654578706f72742f63692e796d6c3f6272616e63683d6d6173746572)](https://github.com/ProfessionalWiki/WikibaseExport/actions?query=workflow%3ACI)[![Type Coverage](https://camo.githubusercontent.com/ede3ef48872a0a9835654f149cd87a661141106ba4c2af7debeb81d9f6f04e58/68747470733a2f2f73686570686572642e6465762f6769746875622f50726f66657373696f6e616c57696b692f57696b69626173654578706f72742f636f7665726167652e737667)](https://shepherd.dev/github/ProfessionalWiki/WikibaseExport)[![Psalm level](https://camo.githubusercontent.com/b752fb289e90c3da34ee72f4a57cfb04ae137a8fa05756f67becb0c1b88ab81d/68747470733a2f2f73686570686572642e6465762f6769746875622f50726f66657373696f6e616c57696b692f57696b69626173654578706f72742f6c6576656c2e737667)](psalm.xml)[![Latest Stable Version](https://camo.githubusercontent.com/81f13a9a6a07c71bbae5dd10cffe49d621e81c5ec3b6e038ab9f4e93f939b789/68747470733a2f2f706f7365722e707567782e6f72672f70726f66657373696f6e616c2d77696b692f77696b69626173652d6578706f72742f762f737461626c65)](https://packagist.org/packages/professional-wiki/wikibase-export)[![Download count](https://camo.githubusercontent.com/3acdb0007b0cd6fae92b8b277f30e0fc869de10866e66b581e9278597a04acd1/68747470733a2f2f706f7365722e707567782e6f72672f70726f66657373696f6e616c2d77696b692f77696b69626173652d6578706f72742f646f776e6c6f616473)](https://packagist.org/packages/professional-wiki/wikibase-export)[![License](https://camo.githubusercontent.com/d42bc331bd4f83feaf91249d007f12223f37ef7c7ff592ff47d4663de40a1924/68747470733a2f2f706f7365722e707567782e6f72672f70726f66657373696f6e616c2d77696b692f77696b69626173652d6578706f72742f6c6963656e7365)](LICENSE)

[Wikibase](https://professional.wiki/en/wikibase-wikidata-and-knowledge-graphs) extension for exporting data as simple CSV.

[Professional Wiki](https://professional.wiki) created and maintains Wikibase Export. We provide [Wikibase hosting](https://professional.wiki/en/hosting/wikibase), [Wikibase development](https://professional.wiki/en/wikibase-software-development), and [Wikibase consulting](https://professional.wiki/en/wikibase-wikidata-and-knowledge-graphs#Wikibase-Services).

**Table of Contents**

- [Demo](#demo)
- [Usage](#usage-documentation)
- [REST API](#rest-api)
- [Installation](#installation)
- [PHP Configuration](#php-configuration)
- [Export page text configuration](#export-page-text-configuration)
- [Development](#development)
- [Release notes](#release-notes)

Demo
----

[](#demo)

Quickly get an idea about what this extension does by checking out the [demo wiki](https://export.wikibase.wiki/) or [demo video](https://www.youtube.com/watch?v=uBdzDcYChOI).

Usage documentation
-------------------

[](#usage-documentation)

See the [usage documentation](https://professional.wiki/en/extension/wikibase-export).

REST API
--------

[](#rest-api)

This extension provides a REST API endpoint for exporting Wikibase items.

For more information, refer to the [REST API documentation](docs/rest.md).

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

[](#installation)

Platform requirements:

- [PHP](https://www.php.net) 8.0 or later (tested up to 8.4)
- [MediaWiki](https://www.mediawiki.org) 1.37 or later (tested up to 1.43) (versions 1.37 and 1.38 require Wikibase Export 1.0.0)
- [Wikibase](https://professional.wiki/en/wikibase-wikidata-and-knowledge-graphs) 1.37 or later (tested up to 1.43)

The recommended way to install Wikibase Export 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 professional-wiki/wikibase-export:~1.0
```

```
composer update professional-wiki/wikibase-export --no-dev -o
```

Then enable the extension by adding the following to the bottom of your wikis [LocalSettings.php](https://www.pro.wiki/help/mediawiki-localsettings-php-guide) file:

```
wfLoadExtension( 'WikibaseExport' );
```

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

PHP Configuration
-----------------

[](#php-configuration)

Configuration can be changed via [LocalSettings.php](https://www.pro.wiki/help/mediawiki-localsettings-php-guide).

### Export configuration

[](#export-configuration)

In JSON format, following the JSON Schema at [schema.json](https://github.com/ProfessionalWiki/WikibaseExport/blob/master/schema.json). Gets combined with rules defined on page `MediaWiki:WikibaseExport`.

Variable: `$wgWikibaseExport`

Default: `""`

Example: [example.json](https://github.com/ProfessionalWiki/WikibaseExport/blob/master/example.json)

Caution: invalid JSON will be ignored. No error will be shown, the intended config will just not be applied.

### Enable in-wiki configuration

[](#enable-in-wiki-configuration)

If it should be possible to configure this extension via `MediaWiki:WikibaseExport`.

Variable: `$wgWikibaseExportEnableInWikiConfig`

Default: `true`

Example: `false`

The page `MediaWiki:WikibaseExport` will always be available. If this configuration is set to `false`, its contents will be ignored.

Development
-----------

[](#development)

To ensure the dev dependencies get installed, have this in your `composer.local.json`:

```
{
	"require": {
		"vimeo/psalm": "^4",
		"phpstan/phpstan": "^1.8.11"
	},
	"extra": {
		"merge-plugin": {
			"include": [
				"extensions/WikibaseExport/composer.json"
			]
		}
	}
}
```

### Running tests and CI checks

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

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

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

Alternatively, you can execute commands from the MediaWiki root directory:

- PHPUnit: `php tests/phpunit/phpunit.php -c extensions/WikibaseExport/`
- Style checks: `vendor/bin/phpcs -p -s --standard=extensions/WikibaseExport/phpcs.xml`
- PHPStan: `vendor/bin/phpstan analyse --configuration=extensions/WikibaseExport/phpstan.neon --memory-limit=2G`
- Psalm: `php vendor/bin/psalm --config=extensions/WikibaseExport/psalm.xml`

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

[](#release-notes)

### Version 2.0.1 - 2025-04-25

[](#version-201---2025-04-25)

- Fixed compatibility issue with MediaWiki 1.39 and 1.40, causing an error on Special:SpecialPages

### Version 2.0.0 - 2025-04-14

[](#version-200---2025-04-14)

- Dropped support for MediaWiki older than 1.39
- Added support for MediaWiki 1.40 up to 1.43
- Added support for PHP up to 8.4

### Version 1.0.0 - 2023-02-06

[](#version-100---2023-02-06)

- Special page with export UI
    - Language selector
    - Subject (entity) selector
    - Grouping and filtering by year based on point in time or time range qualifiers
    - Property selection for both grouped and ungrouped values
    - Header style choice: entity label or entity ID
- Support for multiple values
- Configuration that can be set via PHP and a configuration UI on `MediaWiki:WikibaseExport`
- API endpoint for export
- TranslateWiki integration
- Support for PHP from 8.0 up to 8.2
- Support for MediaWiki from 1.37 up to 1.39

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance48

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor2

2 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 ~404 days

Total

3

Last Release

388d ago

Major Versions

1.0.0 → 2.0.02025-04-14

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/5d30e82252731745d5060a641de6e9431e1d5722ede97cb1cc94d2975aa54753?d=identicon)[malberts](/maintainers/malberts)

---

Top Contributors

[![malberts](https://avatars.githubusercontent.com/u/1428594?v=4)](https://github.com/malberts "malberts (157 commits)")[![JeroenDeDauw](https://avatars.githubusercontent.com/u/146040?v=4)](https://github.com/JeroenDeDauw "JeroenDeDauw (119 commits)")[![translatewiki](https://avatars.githubusercontent.com/u/24829418?v=4)](https://github.com/translatewiki "translatewiki (44 commits)")[![alistair3149](https://avatars.githubusercontent.com/u/9260542?v=4)](https://github.com/alistair3149 "alistair3149 (3 commits)")[![kghbln](https://avatars.githubusercontent.com/u/1104078?v=4)](https://github.com/kghbln "kghbln (2 commits)")[![amire80](https://avatars.githubusercontent.com/u/346271?v=4)](https://github.com/amire80 "amire80 (1 commits)")[![Universal-Omega](https://avatars.githubusercontent.com/u/54654040?v=4)](https://github.com/Universal-Omega "Universal-Omega (1 commits)")

---

Tags

exportmediawikimediawiki-extensionwikibasewikibase-extensionexportmediawikicsvwikibase

###  Code Quality

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)[league/csv

CSV data manipulation made easy in PHP

3.5k166.1M646](/packages/league-csv)[goodby/csv

CSV import/export library

9555.6M23](/packages/goodby-csv)[sonata-project/exporter

Lightweight Exporter library

44920.9M35](/packages/sonata-project-exporter)[kartik-v/yii2-export

A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)

1623.1M35](/packages/kartik-v-yii2-export)[handcraftedinthealps/goodby-csv

CSV import/export library

441.6M4](/packages/handcraftedinthealps-goodby-csv)

PHPackages © 2026

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