PHPackages                             ceus-media/markdown - 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. ceus-media/markdown

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ceus-media/markdown
===================

0.2.1(3mo ago)04492GPL-3.0+PHPPHP ^8.1CI failing

Since Aug 11Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/CeusMedia/Markdown)[ Packagist](https://packagist.org/packages/ceus-media/markdown)[ RSS](/packages/ceus-media-markdown/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (16)Versions (7)Used By (2)

Markdown
========

[](#markdown)

[![Branch](https://camo.githubusercontent.com/4e7b284808e7bcecfd26e898f2e265b05ebd6fae32c899800b5b8228a9329d99/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4272616e63682d302e322e782d626c75653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/4e7b284808e7bcecfd26e898f2e265b05ebd6fae32c899800b5b8228a9329d99/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4272616e63682d302e322e782d626c75653f7374796c653d666c61742d737175617265)[![Release](https://camo.githubusercontent.com/6ee7cc85cf4e06daa76a83878e37a163fb212f9bf33b1dfc9b5966601f4ef01e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52656c656173652d302e322e312d626c75653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/6ee7cc85cf4e06daa76a83878e37a163fb212f9bf33b1dfc9b5966601f4ef01e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52656c656173652d302e322e312d626c75653f7374796c653d666c61742d737175617265)[![PHP version](https://camo.githubusercontent.com/7ebb0279547d526a54d318d9ab47d214fc6a36936050d77b00e120c3ce9db3f1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e312d626c75653f7374796c653d666c61742d73717561726526636f6c6f723d373737424234)](https://camo.githubusercontent.com/7ebb0279547d526a54d318d9ab47d214fc6a36936050d77b00e120c3ce9db3f1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e312d626c75653f7374796c653d666c61742d73717561726526636f6c6f723d373737424234)[![PHPStan level](https://camo.githubusercontent.com/50dc710d6f9a1b0b92e8f5605a07e91fb1a073bd9b709d1ee6aedbdc77f8353f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e5f6c6576656c2d2d2d2d6461726b677265656e3f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/50dc710d6f9a1b0b92e8f5605a07e91fb1a073bd9b709d1ee6aedbdc77f8353f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e5f6c6576656c2d2d2d2d6461726b677265656e3f7374796c653d666c61742d737175617265)[![Total downloads](https://camo.githubusercontent.com/a94c2ebcb19529724724f4d937849a72f45d264197b26bb3e3c2f810606f8a6b/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636575732d6d656469612f6d61726b646f776e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ceus-media/common)[![Package version](https://camo.githubusercontent.com/5c65db1d33acef5973a0b987e2d0d3f378f097a9884ae1df6e0dcedcf9ae3ae7/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636575732d6d656469612f6d61726b646f776e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ceus-media/common)[![License](https://camo.githubusercontent.com/e8c79ff60f29e6ff4943787dc021946b2aa2620cd0b26e2ab92a060f5419dc84/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636575732d6d656469612f6d61726b646f776e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ceus-media/common)

Abstraction layer for using several Markdown converters, mostly written in PHP.

Description
-----------

[](#description)

### Use Cases

[](#use-cases)

Allows to convert Markdown to other formats (HTML only at the moment). Within this library this process will be done using a `Renderer`, since a Markdown code will be rendered into another format. Since there are several Markdown flavors and implementations, this library is providing an abstraction layer to easily switch between flavors.

Allows to convert other formats (HTML only at the moment) to Markdown. Within this library this process will be done using a `Parser`, since other formats will be parsed to be understood as Markdown.

### Aim

[](#aim)

This library aims to provide an abstraction layer for existing implementations for convert Markdown into and from other formats. This will be done by maintaining a list of Open Source packages and providing this collection easily using `composer`.

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

[](#installation)

Using composer:

```
composer require ceus-media/markdown

```

Usage
-----

[](#usage)

After loading the libraries or using autoloading, e.G. using `composer`, you can use this library the following ways.

### Rendering

[](#rendering)

To render Markdown code into HTML, using the [PHP implementation](http://commonmark.thephpleague.com/) of [Commonmark syntax](http://commonmark.org/):

```
use \CeusMedia\Markdown\Renderer\Html;

$renderer	= new Html();
//$renderer->setRenderer( Html::RENDERER_PARSEDOWN );
$html		= $renderer->convert( "## Heading 2" );

```

You can change the used renderer, for example to support tables and fenced code by switching to `Parsedown`:

```
$renderer->setRenderer( Html::RENDERER_PARSEDOWN );

```

### Parsing

[](#parsing)

Trying to convert HTML to Markdown can be done like this:

```
use \CeusMedia\Markdown\Parser\Html;

$parser		= new Html();
$markdown	= $parser->convert( "Heading" );

```

Outlook
-------

[](#outlook)

The next versions will include other output formats (like PDF or Open Document) and input formats (like DokuWiki and other Wiki syntaxes).

### Todos

[](#todos)

#### Add DokuWiki Parser

[](#add-dokuwiki-parser)

- use [titledk/dokuwiki-to-markdown-converter](https://github.com/titledk/dokuwiki-to-markdown-converter)
- call `convert` on [DocuwikiToMarkdownExtra](https://github.com/titledk/dokuwiki-to-markdown-converter/blob/master/scripts/DocuwikiToMarkdownExtra.php)

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance82

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Recently: every ~787 days

Total

6

Last Release

98d ago

PHP version history (3 changes)0.1PHP ^5.3.0 || ^7

0.1.2PHP &gt;=7.2

0.2.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/fafb923e05a0e4cdd0cd6a6093f3452ce75aab95949121e7ab180686343dce14?d=identicon)[kriss0r](/maintainers/kriss0r)

---

Top Contributors

[![kriss0r](https://avatars.githubusercontent.com/u/476914?v=4)](https://github.com/kriss0r "kriss0r (14 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ceus-media-markdown/health.svg)

```
[![Health](https://phpackages.com/badges/ceus-media-markdown/health.svg)](https://phpackages.com/packages/ceus-media-markdown)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.8k69.4k](/packages/grumpydictator-firefly-iii)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.3k449.3k30](/packages/tightenco-jigsaw)[roundcube/roundcubemail

The Roundcube Webmail suite

7.0k1.4k3](/packages/roundcube-roundcubemail)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[verbb/formie

The most user-friendly forms plugin for Craft.

100387.6k59](/packages/verbb-formie)

PHPackages © 2026

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