PHPackages                             attus/mediawiki-api - 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. [API Development](/categories/api)
4. /
5. attus/mediawiki-api

AbandonedLibrary[API Development](/categories/api)

attus/mediawiki-api
===================

A basic PHP MediaWiki API

2.1.0(5y ago)011GPL-3.0-or-laterPHP

Since Mar 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/attus74/mediawiki-api)[ Packagist](https://packagist.org/packages/attus/mediawiki-api)[ Docs](https://github.com/attus74/mediawiki-api)[ RSS](/packages/attus-mediawiki-api/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

MediaWiki API
=============

[](#mediawiki-api)

A basic PHP MediaWiki API to get pages and files

Get page content or URL:

```
$api = new Api('https://de.wikipedia.org');
$page = $api->getPage('Geschichte der Kölner Straßenbahn');
$content = $page->getContent();
$url = $page->getUrl();
```

Get image user and page url:

```
$api = new Api('https://de.wikipedia.org');
$image = $api->getImage('File:KVB4076_Severinsbruecke.jpg');
$pageUrl = $image->getPageUrl();
$user = $image->getImageUser();
```

Get image URL in a certain size:

```
$api = new Api('https://de.wikipedia.org');
$image = $api->getImage('File:KVB4076_Severinsbruecke.jpg');
$url = $image->getImageUrl(1920);
```

If the original image is smaller than the requested size, the URL of the original is returned.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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 ~17 days

Total

3

Last Release

1907d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/963df7e1e6fed4dc987c99562b477720bb634c7ce47d0528ccf6e94e9cfea9f8?d=identicon)[attus74](/maintainers/attus74)

---

Tags

mediawiki

### Embed Badge

![Health badge](/badges/attus-mediawiki-api/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M981](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1943.1k5](/packages/aimeos-prisma)

PHPackages © 2026

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