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

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

tempest/markdown
================

Fast and extensible Markdown in PHP

1.1.2(3w ago)341392[2 issues](https://github.com/tempestphp/markdown/issues)[1 PRs](https://github.com/tempestphp/markdown/pulls)1MITPHPPHP ^8.5

Since May 13Pushed 3w ago1 watchersCompare

[ Source](https://github.com/tempestphp/markdown)[ Packagist](https://packagist.org/packages/tempest/markdown)[ GitHub Sponsors](https://github.com/brendt)[ RSS](/packages/tempest-markdown/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (9)Dependencies (20)Versions (14)Used By (1)

Fast and extensible Markdown in PHP
===================================

[](#fast-and-extensible-markdown-in-php)

`tempest/markdown` is a Markdown parser for server-side Markdown parsing with PHP. It's designed to be fast and extensible, and has a bunch of extended Markdown features built-in like code highlighting, table and div support, responsive images, and frontmatter support.

Important

This package is still a work in progress! Feel free to open issues.

Quickstart
----------

[](#quickstart)

```
composer require tempest/markdown
```

Render Markdown like this:

```
use Tempest\Markdown\Markdown;

$markdown = new Markdown();

$parsed = $markdown->parse(file_get_contents('README.md'));

echo $parsed->frontmatter['title'];
echo $parsed->html;
```

You can read more in [the docs](https://tempestphp.com/3.x/packages/markdown).

Performance
-----------

[](#performance)

This package began as a challenge to make a more performant Markdown parser in pure PHP. The primary performance gain is from not relying on regex but instead using a simple lexer to tokenize Markdown files and convert them to HTML.

Benchmarks are included in this repo and can be run with `composer bench` after installing all dev dependencies. Here are the results on my machine for rendering the full Tempest docs:

PackageMemoryTime to parsetempest/markdown6.664mb10.906msleague/commonmark21.114mb56.993msmichelf/php-markdown7.343mb23.215mserusev/parsedown-extra8.485mb15.163ms

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance93

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.2% 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 ~6 days

Total

8

Last Release

25d ago

Major Versions

0.0.3 → 1.0.02026-06-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/5cb3720658b52133e7200a378eae26508fb343534a3c115bd3ee74ea9d501ba2?d=identicon)[brendt](/maintainers/brendt)

---

Top Contributors

[![brendt](https://avatars.githubusercontent.com/u/6905297?v=4)](https://github.com/brendt "brendt (126 commits)")[![xHeaven](https://avatars.githubusercontent.com/u/14284867?v=4)](https://github.com/xHeaven "xHeaven (4 commits)")[![raphaelstolt](https://avatars.githubusercontent.com/u/48225?v=4)](https://github.com/raphaelstolt "raphaelstolt (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k16](/packages/tempest-framework)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k57](/packages/friendsoftypo3-content-blocks)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49617.1k](/packages/blackfire-player)[tempest/console

The console component provides a way to build commands within the framework or standalone command-line applications.

7249.5k21](/packages/tempest-console)[altis/local-server

Local Server module for Altis

18221.6k4](/packages/altis-local-server)

PHPackages © 2026

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