PHPackages                             misd/twig-markdowner - 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. misd/twig-markdowner

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

misd/twig-markdowner
====================

Twig extension to turn Markdown formatted text into HTML

v1.0.2(13y ago)448MITPHP

Since Sep 26Pushed 13y agoCompare

[ Source](https://github.com/misd-service-development/twig-markdowner)[ Packagist](https://packagist.org/packages/misd/twig-markdowner)[ Docs](https://github.com/misd-service-development/twig-markdowner)[ RSS](/packages/misd-twig-markdowner/feed)WikiDiscussions master Synced today

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

TwigMarkdowner
==============

[](#twigmarkdowner)

Converts text with [Markdown](http://daringfireball.net/projects/markdown/) syntax into HTML in Twig templates.

Authors
-------

[](#authors)

- Stuart Chapman

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

[](#installation)

1. Add TwigMarkdowner to your dependencies

    ```
     // composer.json

     {
         // ...
         "require": {
             // ...
             "misd/twig-markdowner": "1.0.*"
         }
     }

    ```
2. Use Composer to download and install TwigMarkdowner

    ```
     $ php composer.phar update misd/twig-markdowner

    ```
3. Instantiate a `MarkdownParser` and add the extension to the Twig environment

    ```
     $parser = new \dflydev\markdown\MarkdownParser();

     /** @var $twig Twig_Environment */
     $twig->addExtension(new Misd\TwigMarkdowner\Twig\Extension\MarkdownerExtension($parser));

    ```

Usage
-----

[](#usage)

In a Twig template:

```
    {{ "My *Markdown* text"|markdown }}

```

or

```
    {{ object.property|markdown }}

```

Please note
-----------

[](#please-note)

This filter does *not* prevent the injection of arbitrary HTML and JavaScript; the output should be filtered (using [HTMLPurifier](http://htmlpurifier.org/), or equivalent) before being output in a template.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

2

Last Release

5015d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/910068?v=4)[Stuart Chapman](/maintainers/StuBez)[@StuBez](https://github.com/StuBez)

---

Tags

htmlmarkdown

### Embed Badge

![Health badge](/badges/misd-twig-markdowner/health.svg)

```
[![Health](https://phpackages.com/badges/misd-twig-markdowner/health.svg)](https://phpackages.com/packages/misd-twig-markdowner)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)

PHPackages © 2026

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