PHPackages                             professional-wiki/wikibase-local-media - 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. professional-wiki/wikibase-local-media

ActiveMediawiki-extension

professional-wiki/wikibase-local-media
======================================

Adds the local media data type to Wikibase

2.0.0(1y ago)127.0k↓22.2%9[4 issues](https://github.com/ProfessionalWiki/WikibaseLocalMedia/issues)[1 PRs](https://github.com/ProfessionalWiki/WikibaseLocalMedia/pulls)GPL-2.0-or-laterPHPPHP &gt;=7.4CI failing

Since Sep 26Pushed 1mo ago7 watchersCompare

[ Source](https://github.com/ProfessionalWiki/WikibaseLocalMedia)[ Packagist](https://packagist.org/packages/professional-wiki/wikibase-local-media)[ Docs](https://professional.wiki/en/extension/wikibase-local-media)[ GitHub Sponsors](https://github.com/JeroenDeDauw)[ RSS](/packages/professional-wiki-wikibase-local-media/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (3)Versions (11)Used By (0)

Wikibase Local Media
====================

[](#wikibase-local-media)

[![GitHub Workflow Status](https://camo.githubusercontent.com/ed7df0f4d306b072b604cab9ea036f63f22c8addbc25218a72c7ccb4c66c5cab/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f50726f66657373696f6e616c57696b692f57696b69626173654c6f63616c4d656469612f63692e796d6c3f6272616e63683d6d6173746572)](https://github.com/ProfessionalWiki/WikibaseLocalMedia/actions?query=workflow%3ACI)[![Latest Stable Version](https://camo.githubusercontent.com/23fcc69785c23d19b69b1cc9c33b2621b7f1ce790d7adcb501b6a0d99ce1fa49/68747470733a2f2f706f7365722e707567782e6f72672f70726f66657373696f6e616c2d77696b692f77696b69626173652d6c6f63616c2d6d656469612f762f737461626c65)](https://packagist.org/packages/professional-wiki/wikibase-local-media)[![Download count](https://camo.githubusercontent.com/495a1bfb44cd5812e8b3d6a906ffcb61aa90ce9581c397c254ac9453734fafdf/68747470733a2f2f706f7365722e707567782e6f72672f70726f66657373696f6e616c2d77696b692f77696b69626173652d6c6f63616c2d6d656469612f646f776e6c6f616473)](https://packagist.org/packages/professional-wiki/wikibase-local-media)[![License](https://camo.githubusercontent.com/dc0cb729dfd6852649809422498b8d653dff0a1f2c24b87b95ddc6d4fb234f5f/68747470733a2f2f706f7365722e707567782e6f72672f70726f66657373696f6e616c2d77696b692f77696b69626173652d6c6f63616c2d6d656469612f6c6963656e7365)](LICENSE)

MediaWiki extension that adds support for local media files to [Wikibase](https://professional.wiki/en/wikibase-wikidata-and-knowledge-graphs) via a new data type.

[Professional Wiki](https://professional.wiki) created and maintains Wikibase Local Media. We provide [Wikibase hosting](https://professional.wiki/en/hosting/wikibase), [Wikibase development](https://professional.wiki/en/wikibase-software-development), and [Wikibase consulting](https://wikibase.consulting/).

[Rhizome](https://rhizome.org/) commissioned and funded the extension's initial development. Wikibase Local Media is an open-source project, and contributions are welcome!

Demo and screenshot
-------------------

[](#demo-and-screenshot)

[![](.github/youtube.png "Play video")](https://www.youtube.com/watch?v=mK-zdazdH78)[![](https://user-images.githubusercontent.com/146040/94343935-0e10d300-001c-11eb-8ec2-6f86ccf20e2f.png "View image")](https://user-images.githubusercontent.com/146040/94343935-0e10d300-001c-11eb-8ec2-6f86ccf20e2f.png)

Also see [this animated gif](https://twitter.com/i/status/1286293710112731137).

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

[](#platform-requirements)

- [PHP](https://www.php.net) 7.4 or later
- [MediaWiki](https://www.mediawiki.org) 1.40 or later
- [Wikibase Repository](https://www.mediawiki.org/wiki/Extension:Wikibase_Repository)

For more information on the different versions of this extension, see the [release notes](#release-notes).

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

[](#installation)

First, install MediaWiki and Wikibase Repository.

**Using Composer (option 1/2)**

The recommended way to install Wikibase Local Media 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 wiki's root directory. Then run these two commands:

```
COMPOSER=composer.local.json composer require --no-update professional-wiki/wikibase-local-media:*
composer update professional-wiki/wikibase-local-media --no-dev -o
```

**Manual download (option 2/2)**

You can also install the extension via git clone or download. Place the `WikibaseLocalMedia` directory into `extensions`.

**Enabling the extension**

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

```
wfLoadExtension( 'WikibaseLocalMedia' );
```

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

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

[](#php-configuration)

Configuration can be changed via [LocalSettings.php](https://www.mediawiki.org/wiki/Manual:LocalSettings.php).

### Setting foreign file repo

[](#setting-foreign-file-repo)

Optional wiki API URL, works in conjunction with `$wgForeignFileRepos` for retrieving images from any wiki

Variable: `$wgWikibaseLocalMediaRemoteApiUrl`

Default: `null`

Example: `https://commons.wikimedia.org/w/api.php`

Running the tests
-----------------

[](#running-the-tests)

- PHP tests: `php tests/phpunit/phpunit.php extensions/WikibaseLocalMedia/tests/`
- JS tests: `index.php?title=Special%3AJavaScriptTest&filter=jquery.ui.mediasuggester`

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

[](#release-notes)

### Version 2.0.0

[](#version-200)

Released on March 30, 2025

- Raised the minimum MediaWiki version from 1.35 to 1.40
- Added support for MediaWiki 1.41, 1.42, 1.43, and the development version of 1.44
- Translation updates

### Version 1.1.0

[](#version-110)

Released on February 16, 2025

- [Added optional APU URL configuration variable](https://github.com/ProfessionalWiki/WikibaseLocalMedia/pull/37) `wgWikibaseLocalMediaRemoteApiUrl` (works together with `wgForeignFileRepos`)
- Translation updates

### Version 1.0.4

[](#version-104)

Released on October 9, 2024

- Fixed support for non-English wikis
- Fixed deprecation warning of MediaWiki 1.40 and later
- Translation updates

### Version 1.0.3

[](#version-103)

Released on March 30, 2023

- Added support for MediaWiki and Wikibase 1.38 and 1.39
- Translation updates

### Version 1.0.2

[](#version-102)

Released on October 4th 2022

- Added support for MediaWiki and Wikibase 1.37
- Translation updates

### Version 1.0.1

[](#version-101)

Released on March 17th 2021

- Allowed installation with PHP 7.2.x
- Translation updates

### Version 1.0.0

[](#version-100)

Released on October 5th 2020

- Added optional integration with Wikibase Client
- Translation updates

### Version 0.2.1

[](#version-021)

Released on September 28th 2020

- Fixed support for PHP 7.3.x

### Version 0.2

[](#version-02)

Released on September 26th 2020

- Added support for MediaWiki/Wikibase 1.35
- The extension is now listed in the Wikibase group on Special:Version

### Version 0.1

[](#version-01)

Released on September 26th 2020

- [Initial release](https://professional.wiki/en/news/wikibase-local-media) for MediaWiki/Wikibase 1.34

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance63

Regular maintenance activity

Popularity34

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

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

Every ~205 days

Recently: every ~368 days

Total

9

Last Release

414d ago

Major Versions

0.2.1 → 1.0.02020-10-05

1.0.4 → 2.0.02025-03-30

PHP version history (3 changes)0.1.0PHP &gt;=7.3

1.0.1PHP &gt;=7.2

2.0.0PHP &gt;=7.4

### Community

Maintainers

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

![](https://avatars.githubusercontent.com/u/1104078?v=4)[Karsten Hoffmeyer](/maintainers/kghbln)[@kghbln](https://github.com/kghbln)

---

Top Contributors

[![JeroenDeDauw](https://avatars.githubusercontent.com/u/146040?v=4)](https://github.com/JeroenDeDauw "JeroenDeDauw (87 commits)")[![translatewiki](https://avatars.githubusercontent.com/u/24829418?v=4)](https://github.com/translatewiki "translatewiki (36 commits)")[![Universal-Omega](https://avatars.githubusercontent.com/u/54654040?v=4)](https://github.com/Universal-Omega "Universal-Omega (6 commits)")[![malberts](https://avatars.githubusercontent.com/u/1428594?v=4)](https://github.com/malberts "malberts (5 commits)")[![kghbln](https://avatars.githubusercontent.com/u/1104078?v=4)](https://github.com/kghbln "kghbln (4 commits)")[![alistair3149](https://avatars.githubusercontent.com/u/9260542?v=4)](https://github.com/alistair3149 "alistair3149 (4 commits)")[![physikerwelt](https://avatars.githubusercontent.com/u/2777736?v=4)](https://github.com/physikerwelt "physikerwelt (1 commits)")[![hrideshmg](https://avatars.githubusercontent.com/u/81355180?v=4)](https://github.com/hrideshmg "hrideshmg (1 commits)")[![toban](https://avatars.githubusercontent.com/u/352149?v=4)](https://github.com/toban "toban (1 commits)")[![etlel](https://avatars.githubusercontent.com/u/17115179?v=4)](https://github.com/etlel "etlel (1 commits)")[![rti](https://avatars.githubusercontent.com/u/80712?v=4)](https://github.com/rti "rti (1 commits)")[![addshore](https://avatars.githubusercontent.com/u/3308769?v=4)](https://github.com/addshore "addshore (1 commits)")

---

Tags

mediawikimediawiki-extensionwikibasewikibase-extensionwikidatamediawikifilesimagesextensionwikiSemantic Webstructured-datadatatypewikidatawikibaselocal medialocalmedia

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3164.5k](/packages/starcitizentools-citizen-skin)[mediawiki/bootstrap

Provides the Bootstrap 5 web front-end framework to MediaWiki skins and extensions

15102.0k5](/packages/mediawiki-bootstrap)[mediawiki/simple-batch-upload

Basic, no-frills uploading of multiple files to MediaWiki

2321.3k](/packages/mediawiki-simple-batch-upload)[mediawiki/semantic-bundle

Bundle extension that installs and loads Semantic MediaWiki and associated extensions

204.4k](/packages/mediawiki-semantic-bundle)[mediawiki/semantic-cite

A Semantic MediaWiki extension to manage citation resources.

2310.2k1](/packages/mediawiki-semantic-cite)

PHPackages © 2026

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