PHPackages                             toiee/haik-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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. toiee/haik-markdown

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

toiee/haik-markdown
===================

PHP haik Markdown parser

0.6.0(12y ago)099[1 PRs](https://github.com/toiee/haik-markdown/pulls)MITPHPPHP &gt;=5.3.3

Since Mar 28Pushed 12y ago3 watchersCompare

[ Source](https://github.com/toiee/haik-markdown)[ Packagist](https://packagist.org/packages/toiee/haik-markdown)[ RSS](/packages/toiee-haik-markdown/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (5)Used By (0)

haik Markdown
=============

[](#haik-markdown)

PHP haik Markdown parser based on PHP Markdown Extra.

This markdown parser has pluggable interface.

by Hokuken \[\] ( "Hokuken Inc.")

based on \[PHP Markdown\] ( "michelf/php-markdown")

Requirement
-----------

[](#requirement)

This library package requires PHP 5.3 or later.

About plugin
------------

[](#about-plugin)

Markdown text can include special syntax for haik-markdown plugins. These syntaxes are **inline** and **convert** .

### Inline plugin

[](#inline-plugin)

In below example, See `/[...](deco red)` and `/(br)`, they parse to `...` and `\n` .

```
Lorem ipsum dolor sit amet, /[consectetur](deco red) adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua./(br) Ut enim ad minim veniam, quis nostrud exercitation
ullamco laboris nisi ut aliquip ex ea commodo consequat.

```

### Convert plugin

[](#convert-plugin)

#### One line call

[](#one-line-call)

The example text are converted to `` .

```
::: button :::

```

#### Contains body

[](#contains-body)

In below example, See `::: section` . they wrap plugin body by specified tags `...` .

```
::: section
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation
ullamco laboris nisi ut aliquip ex ea commodo consequat.
:::

```

#### Contains parameters

[](#contains-parameters)

Plugin body can contain YAML parameters up to 3 hyphens line.

```
::: section
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation
ullamco laboris nisi ut aliquip ex ea commodo consequat.

---
bg-color: #fefefe
color: #333
:::

```

Usage
-----

[](#usage)

### With basic plugins

[](#with-basic-plugins)

```
// Preparation to use
use \Hokuken\HaikMarkdown;
$parser = new HaikMarkdown();
$plugin_repository = new Hokuken\HaikMarkdown\Plugin\Basic\PluginRepository($parser);
$parser->registerPluginRepository($plugin_repository);

// Parsing markdown text
$html = $parser->transform($markdown_text);

```

### With Twitter Bootstrap plugins

[](#with-twitter-bootstrap-plugins)

```
// Preparation to use
use \Hokuken\HaikMarkdown;
$parser = new HaikMarkdown();
$plugin_repository = new Hokuken\HaikMarkdown\Plugin\Bootstrap\PluginRepository($parser);
$parser->registerPluginRepository($plugin_repository);

// Parsing markdown text
$html = $parser->transform($markdown_text);

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.1% 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

4

Last Release

4408d ago

### Community

Maintainers

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

---

Top Contributors

[![big2men](https://avatars.githubusercontent.com/u/808888?v=4)](https://github.com/big2men "big2men (291 commits)")[![rmasamori](https://avatars.githubusercontent.com/u/887822?v=4)](https://github.com/rmasamori "rmasamori (47 commits)")

---

Tags

markdownhaik

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[daux/daux.io

Documentation generator that uses a simple folder structure and Markdown files to create custom documentation on the fly

825191.0k1](/packages/daux-dauxio)[kartik-v/yii2-markdown

Advanced Markdown editing and conversion utilities for Yii Framework 2.0

88265.8k6](/packages/kartik-v-yii2-markdown)[vtalbot/markdown

Markdown compiler for Laravel 5

100204.2k3](/packages/vtalbot-markdown)[maglnet/magl-markdown

Provides a ZF2 View Helper to render markdown syntax. It uses third-party libraries for the rendering and you can switch between different renderers.

22178.2k4](/packages/maglnet-magl-markdown)[pagerange/metaparsedown

Adds ability to have meta data in markdown files parsed by eursev/parsedown or eruseve/parsedown-extra

2637.2k2](/packages/pagerange-metaparsedown)[joomlatools/pages

Joomlatools Pages is a very fast just-in-time page generator and flexible framework that makes building websites with any CMS, API, or database fun again. It can be installed in Joomla as a component, or be used standalone

473.7k](/packages/joomlatools-pages)

PHPackages © 2026

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