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 2mo ago

READMEChangelogDependenciesVersions (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

4406d ago

### Community

---

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)")

### 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

[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.0M283](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

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

Parser for CSS Files written in PHP

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

PHP Markdown

3.5k52.4M344](/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)
