PHPackages                             comfyphp/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. [Framework](/categories/framework)
4. /
5. comfyphp/markdown

AbandonedArchivedLibrary[Framework](/categories/framework)

comfyphp/markdown
=================

Markdown extension for ComfyPHP

v1.0.1(2y ago)09MITPHPPHP &gt;=8.0

Since Jul 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/comfyphp/markdown)[ Packagist](https://packagist.org/packages/comfyphp/markdown)[ Docs](https://github.com/comfyphp/markdown)[ RSS](/packages/comfyphp-markdown/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

ComfyPHP Markdown Extension
===========================

[](#comfyphp-markdown-extension)

This is an extension for ComfyPHP framework to enable the function of using markdown as a page.

Before Using it
---------------

[](#before-using-it)

As this is an extension for ComfyPHP, All dependencies required in ComfyPHP and ComfyPHP itself is needed to use this extension.

Download / Install
------------------

[](#download--install)

To use this extension, you can install it with Composer.

```
composer require comfyphp/markdown
```

Initialize
----------

[](#initialize)

Since this extension is based on [Parsedown](https://github.com/erusev/parsedown) &amp; [Parsedown Extra](https://github.com/erusev/parsedown-extra), you may pass the configurations which accepted by it.

```
$config = [
    "setBreaksEnabled" => true,
    "setMarkupEscaped" => true,
    "setUrlsLinked" => false,
    "setSafeMode" => true,
];

// This extension will modify the router and document of ComfyPHP
$router = new ComfyPHP\Markdown\Router();
$document = new ComfyPHP\Markdown\Document($config);
```

Then pass the variables into `ComfyPHP\Core()`:

```
$core = new ComfyPHP\Core([
    "router" => $router,
    "document" => $document,
]);
```

Create a routing to the target file:

```
$core->getRouter()->get("/md", "/markdown/index");
```

Or use File-Based Routing if you like:

```
$core->fileBasedRouter();
```

Usage
-----

[](#usage)

After the initialization, you may create a markdown file in `src/pages` folder (default), let's take `src/pages/markdown/index.md` as the example:

Here we create a heading in the markdown file:

```
# This is My Markdown file {.heading}
```

This will create the HTML below after process:

```
This is My Markdown file
```

For more information, you may take a look [here](https://michelf.ca/projects/php-markdown/extra/).

Meta Tags / Elements
--------------------

[](#meta-tags--elements)

In addition to converting markdown content to HTML, you can also include the `` sections at the beginning of the markdown file. ComfyPHP will read and convert them accordingly.

```

    Title

```

License
-------

[](#license)

This project is MIT licensed, you can find the license file [here](./LICENSE).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

2

Last Release

982d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

comfyphpextensionframeworkmarkdownmdphpphp-frameworkphpframeworkmarkdownparseparsedowndownmarkcomfycomfyphpcomfortablecomfortably

### Embed Badge

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

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

PHPackages © 2026

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