PHPackages                             divineomega/php-wikitext-parser - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. divineomega/php-wikitext-parser

Abandoned → [jord-jd/php-wikitext-parser](/?search=jord-jd%2Fphp-wikitext-parser)Library[Parsing &amp; Serialization](/categories/parsing)

divineomega/php-wikitext-parser
===============================

Parse Wikitext in PHP

v3.0.0(3mo ago)42441LGPL-3.0-onlyPHPPHP &gt;=7.1

Since Apr 28Pushed 3mo agoCompare

[ Source](https://github.com/Jord-JD/php-wikitext-parser)[ Packagist](https://packagist.org/packages/divineomega/php-wikitext-parser)[ GitHub Sponsors](https://github.com/DivineOmega)[ RSS](/packages/divineomega-php-wikitext-parser/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

PHP Wikitext Parser
===================

[](#php-wikitext-parser)

The library provides an easy way to parse Wikitext in PHP.

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

[](#installation)

Just run the following Composer command at the root of your project.

```
composer require jord-jd/php-wikitext-parser
```

Usage
-----

[](#usage)

The most basic usage is to convert a Wikitext formatted string to plain text.

```
$plainText = (new WikitextParser())
    ->setWikitext($wikitext)
    ->parse();
```

### Alternative Format

[](#alternative-format)

You are also able to specify alternative formats to convert to, using the `setFormat` method. By default, this is set to plain text.

For example, you can convert Wikitext to HTML, as shown below.

```
$plainText = (new WikitextParser())
    ->setWikitext($wikitext)
    ->setFormat(Format::HTML)
    ->parse();
```

### Caching

[](#caching)

By default, file caching is used. If you wish, you can specify any PSR-6 compliant caching library. This is done using the `setCache` method as should below.

```
$cache = new OtherPsr6CacheItemPool();

$plainText = (new WikitextParser())
    ->setCache($cache)
    ->setWikitext($wikitext)
    ->parse();
```

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance82

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~621 days

Total

5

Last Release

90d ago

Major Versions

v1.0.2 → v2.0.02026-02-14

v2.0.0 → v3.0.02026-02-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/c580cdf7c14898fff179cdfc1085892091d5d2f49d917873a12365af9ac77c93?d=identicon)[Jord-JD](/maintainers/Jord-JD)

---

Top Contributors

[![Jord-JD](https://avatars.githubusercontent.com/u/650645?v=4)](https://github.com/Jord-JD "Jord-JD (9 commits)")

---

Tags

parserphp-librarywikitextwikitext-parser

### Embed Badge

![Health badge](/badges/divineomega-php-wikitext-parser/health.svg)

```
[![Health](https://phpackages.com/badges/divineomega-php-wikitext-parser/health.svg)](https://phpackages.com/packages/divineomega-php-wikitext-parser)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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