PHPackages                             vi-kon/laravel-parser-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. vi-kon/laravel-parser-markdown

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

vi-kon/laravel-parser-markdown
==============================

Markdown parser for Laravel 5

v1.1.1(10y ago)23411[1 issues](https://github.com/vi-kon/laravel-parser-markdown/issues)[1 PRs](https://github.com/vi-kon/laravel-parser-markdown/pulls)MITPHPPHP &gt;=5.5.9

Since Nov 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/vi-kon/laravel-parser-markdown)[ Packagist](https://packagist.org/packages/vi-kon/laravel-parser-markdown)[ RSS](/packages/vi-kon-laravel-parser-markdown/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

Laravel 5 markdown parser
=========================

[](#laravel-5-markdown-parser)

This is **Laravel 5** package for parsing markdown files or strings. Supports booth [**Traditional Markdown**](http://daringfireball.net/projects/markdown/syntax) and [**Github Flavored Markdown**](https://help.github.com/articles/github-flavored-markdown/) syntaxes.

Table of content
----------------

[](#table-of-content)

- [Todo](#todo)
- [Features](#features)
- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)

---

[Back to top](#laravel-5-markdown-parser)

Todo
----

[](#todo)

- Fix incoming bugs
- Finish documentation

---

[Back to top](#laravel-5-markdown-parser)

Features
--------

[](#features)

- Supports **Traditional** and **GFM** markdown syntax
- Easy to add new rules and skins

---

[Back to top](#laravel-5-markdown-parser)

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

[](#installation)

Via `composer` run following command in your project root:

```
composer require vi-kon/laravel-markdown-parser
```

In your Laravel 5 project add following lines to `app.php`:

```
// to your providers array
'ViKon\ParserMarkdown\ParserMarkdownServiceProvider',
```

---

[Back to top](#laravel-5-markdown-parser)

Usage
-----

[](#usage)

First need to create classes and set markdown rules:

```
$parser = new Parser();
$lexer = new Lexer();
$renderer = new Renderer();

// Initialize parser with markdown rules
$ruleSet = new MarkdownRuleSet();
$ruleSet->init($parser, $lexer);
```

After it need to set renderer. There are multiple skins, **bootstrap** and **markdown**.

```
// Set bootstrap renderer
$bootstrapSkin = new BootstrapSkin();
$bootstrapSkin->init($parser, $renderer);

// Set markdown renderer
$markdownSkin = new MarkdownSkin();
$markdownSkin->init($parser, $renderer);
```

The bootstrap skin outputs HTML content with [Bootstrap](http://getbootstrap.com/) tags and styles.

The markdown skin simply outputs markdown content. So this is mainly for testing purposes.

### Syntax

[](#syntax)

- [Paragraphs and Line breaks](#paragraphs-and-line-breaks)
- [Headers](#headers)

#### Paragraphs and Line breaks

[](#paragraphs-and-line-breaks)

The paragraph handling is depending which parser role is set (**traditional** or **gfm**).

If parser mode is **traditional** then paragraph is simply one or more consecutive lines of text, separated by one or more blank lines.

If parser mode is **gfm** then above rule is apply, but single newline open separate line in same paragraph.

```
Here's a line for us to start with.

This line is separated from the one above by two newlines, so it will be a **separate paragraph**.

This line is also a separate paragraph, but...
This line is only separated by a single newline, so it's a separate line in the **same paragraph**.

```

Here's a line for us to start with.

This line is separated from the one above by two newlines, so it will be a **separate paragraph**.

This line is also a separate paragraph, but... This line is only separated by a single newline, so it's a separate line in the **same paragraph**.

---

[Back to top](#laravel-5-markdown-parser)

#### Headers

[](#headers)

Markdown support two header types (setext or atx).

```
# H1
## H2
### H3
#### H4
##### H5
###### H6

```

H1
==

[](#h1)

H2
--

[](#h2)

### H3

[](#h3)

#### H4

[](#h4)

##### H5

[](#h5)

###### H6

[](#h6)

Alternatively, for H1 and H2, an underline-ish style:

```
Alt-H1
======

Alt-H2
------

```

Alt-H1
======

[](#alt-h1)

Alt-H2
------

[](#alt-h2)

---

[Back to top](#laravel-5-markdown-parser)

License
-------

[](#license)

This package is licensed under the MIT License

---

[Back to top](#laravel-5-markdown-parser)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

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

Total

4

Last Release

3661d ago

Major Versions

v0.1.0 → v1.0.02015-03-10

PHP version history (2 changes)v0.1.0PHP &gt;=5.4.0

v1.1.1PHP &gt;=5.5.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/97ac6badd847093e56369390bf36ddbb8740e10a8a495b339c2adb78e7345663?d=identicon)[vincekovacs](/maintainers/vincekovacs)

---

Top Contributors

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

---

Tags

laravelparsermarkdown

### Embed Badge

![Health badge](/badges/vi-kon-laravel-parser-markdown/health.svg)

```
[![Health](https://phpackages.com/badges/vi-kon-laravel-parser-markdown/health.svg)](https://phpackages.com/packages/vi-kon-laravel-parser-markdown)
```

###  Alternatives

[dniccum/nova-documentation

A Laravel Nova tool that allows you to add markdown-based documentation to your administrator's dashboard.

37116.4k](/packages/dniccum-nova-documentation)[alfredo-ramos/parsedown-extra-laravel

A Parsedown Extra package for Laravel

30155.1k1](/packages/alfredo-ramos-parsedown-extra-laravel)[sbsaga/toon

🧠 TOON for Laravel — a compact, human-readable, and token-efficient data format for AI prompts &amp; LLM contexts. Perfect for ChatGPT, Gemini, Claude, Mistral, and OpenAI integrations (JSON ⇄ TOON).

6115.6k](/packages/sbsaga-toon)[pherum/laravel-bbcode

Parse your BBCode easy with this library.

2427.5k](/packages/pherum-laravel-bbcode)

PHPackages © 2026

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