PHPackages                             johnny13/li3\_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. [Templating &amp; Views](/categories/templating)
4. /
5. johnny13/li3\_markdown

ActiveLithium-library[Templating &amp; Views](/categories/templating)

johnny13/li3\_markdown
======================

Lithium PHP Markdown parser

0.1.0(13y ago)051BSD-3-ClausePHPPHP &gt;=5.3

Since Apr 10Pushed 11y ago1 watchersCompare

[ Source](https://github.com/johnny13/li3_markdown)[ Packagist](https://packagist.org/packages/johnny13/li3_markdown)[ Docs](https://github.com/bruensicke/li3_markdown/blob/master/README.md)[ RSS](/packages/johnny13-li3-markdown/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

Markdown parser for [Lithium PHP](http://lithify.me)
====================================================

[](#markdown-parser-for-lithium-php)

I forked this library in order to add better lithium support. Making a public version of the helper will allow you to also call this same functionality in your controller files.

Lithium library for parsing markdown, uses [PHP Markdown Extra Extended](https://github.com/egil/php-markdown-extra-extended).

PHP Markdown Extra version: `1.2.4`

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

[](#installation)

### Use Composer

[](#use-composer)

**Best Option**

Modify your projects `composer.json` file

```
{
    "require": {
    	...
        "johnny13/li3_markdown": "master"
        ...
    }
}
```

Run `php composer.phar install` (or `php composer.phar update`) and, aside from adding it to your Libraries, you should be good to go.

### Submodule or Clone

[](#submodule-or-clone)

> Select one of the following

Clone/Download the plugin into your app's `libraries` directory.

**Submodule**

From your `app` directory:

```
git submodule add git://github.com/johnny13/li3_markdown.git libraries/li3_markdown

```

**Clone**

From your `app/libraries` directory:

```
git clone git://github.com/johnny13/li3_markdown.git

```

Usage:
------

[](#usage)

To enable the library add the following line at the end of `app/config/bootstrap/libraries.php`:

```
Libraries::add('li3_markdown');

```

### Controller Files

[](#controller-files)

You can easily process text in any controller file like so:

```
 //Include the helper in your controller
 use li3_markdown\extensions\helper\Markdown;

 ...

 //Later in your function turn raw text to markdown
 $beauty = Markdown::rendermarkdown($rawtext);

```

### Markdown Views

[](#markdown-views)

To parse an entire view with markdown simply name your template something similar to:

```
view_name.md.php

```

the renderer will see that it's a markdown template and render it, otherwise it will render it like normal.

### Selective Rendering

[](#selective-rendering)

> This is a helper method that allows you to selectively render text thru the markdown parser. To render the result within a template file simply call the `markdown` helper and run `display`:

```

```

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

[](#installation-1)

Add a submodule to your li3 libraries:

```
git submodule add git@github.com:johnny13/li3_markdown.git libraries/li3_markdown

```

and activate it in you app (config/bootstrap/libraries.php), of course:

```
Libraries::add('li3_markdown');

```

Collaborate
-----------

[](#collaborate)

As always, I welcome your collaboration to make things "even more betterer", so fork and contribute if you feel the need.

Credits
-------

[](#credits)

- [li3](http://www.lithify.me)
- [joseym/li3\_markdown](https://github.com/joseym/li3_markdown)
- [sandelius/li3\_markdown](https://github.com/sandelius/li3_markdown)

Please report any bug, here: [https://github.com/johnny13/li3\_markdown/issues](https://github.com/johnny13/li3_markdown/issues)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

4833d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3952d80c290d2bf2fe2308165a80d7ef4d36477490f184cca3370680335d8729?d=identicon)[johnnyfortune](/maintainers/johnnyfortune)

---

Top Contributors

[![d1rk](https://avatars.githubusercontent.com/u/30408?v=4)](https://github.com/d1rk "d1rk (13 commits)")[![johnny13](https://avatars.githubusercontent.com/u/598517?v=4)](https://github.com/johnny13 "johnny13 (5 commits)")[![joseym](https://avatars.githubusercontent.com/u/238732?v=4)](https://github.com/joseym "joseym (5 commits)")

---

Tags

lithiummarkdowntemplateli3

### Embed Badge

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

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

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[pressbooks/pressbooks-book

This theme is named after Canadian media theorist Marshall McLuhan, who coined the phrase “the medium is the message.” It is designed for academic writing and is also suitable for fiction. Headings are set in Cormorant Garamond, and body type is set in Lora.

216.7k](/packages/pressbooks-pressbooks-book)

PHPackages © 2026

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