PHPackages                             mheap/silex-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. mheap/silex-markdown

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

mheap/silex-markdown
====================

Markdown extension for Silex

3.0.0(8y ago)72.9k↑50%2MITPHPPHP &gt;=7.0.0

Since Aug 21Pushed 8y ago2 watchersCompare

[ Source](https://github.com/mheap/Silex-Markdown)[ Packagist](https://packagist.org/packages/mheap/silex-markdown)[ Docs](https://github.com/mheap/Silex-Markdown)[ RSS](/packages/mheap-silex-markdown/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (5)Versions (6)Used By (0)

Silex-Markdown
==============

[](#silex-markdown)

[![Build Status](https://camo.githubusercontent.com/50af0a2337ec93fb2823e8c0c6db932bf7389e3facbae5981f3f0a8e69969eef/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6d686561702f53696c65782d4d61726b646f776e2e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/mheap/Silex-Markdown)

### Requirements

[](#requirements)

This extension only works with *PHP 7.1+* and *Silex 2*. [Version 1.0.0](https://github.com/mheap/Silex-Markdown/releases/tag/1.0.0) is compatible with Silex 1.

### Installation

[](#installation)

Install with composer:

```
composer require mheap/silex-markdown
```

### Usage

[](#usage)

First, you need to register the Markdown extension. This will use the default settings for the extension.

```
$app->register(new \SilexMarkdown\MarkdownExtension());
```

If you'd like to disable certain transformations, you can provide them when registering the extension. This will not convert headers from markdown to HTML.

```
$app->register(new MarkdownExtension(), array(
    'markdown.features'   => array(
        'header' => false,
    )
));
```

To render markdown, use `$app['markdown']`:

```
$app->get('/', function() use($app) {
    $html = $app['markdown']->transform('# Hello World'); // Hello World
});
```

If you're using Twig via `Silex\Provider\TwigServiceProvider()`, a `markdown` filter will be automatically registered for you. This allows you do do the following:

```
// In your route
$app->get('/', function() use($app) {
    $text = '# Hello World';
    $html = $app['twig']->render('example.twig', array(
        'input' => $text
    ));
});
```

```
// In your twig file
{{ input | markdown }}
```

### Running the tests

[](#running-the-tests)

There are no external dependencies for this library. Just `composer install` then run `./vendor/bin/phpunit`

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 57% 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 ~169 days

Total

3

Last Release

3138d ago

Major Versions

2.0.1 → 3.0.02017-10-05

PHP version history (2 changes)2.0.0PHP &gt;=5.3.0

3.0.0PHP &gt;=7.0.0

### Community

Maintainers

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

---

Top Contributors

[![sveneisenschmidt](https://avatars.githubusercontent.com/u/62278?v=4)](https://github.com/sveneisenschmidt "sveneisenschmidt (53 commits)")[![mheap](https://avatars.githubusercontent.com/u/59130?v=4)](https://github.com/mheap "mheap (9 commits)")[![igorw](https://avatars.githubusercontent.com/u/88061?v=4)](https://github.com/igorw "igorw (9 commits)")[![korstiaan](https://avatars.githubusercontent.com/u/902842?v=4)](https://github.com/korstiaan "korstiaan (8 commits)")[![robo47](https://avatars.githubusercontent.com/u/110477?v=4)](https://github.com/robo47 "robo47 (6 commits)")[![jwpage](https://avatars.githubusercontent.com/u/52687?v=4)](https://github.com/jwpage "jwpage (4 commits)")[![romainneutron](https://avatars.githubusercontent.com/u/137574?v=4)](https://github.com/romainneutron "romainneutron (2 commits)")[![alehaa](https://avatars.githubusercontent.com/u/6250567?v=4)](https://github.com/alehaa "alehaa (1 commits)")[![jpetitcolas](https://avatars.githubusercontent.com/u/688373?v=4)](https://github.com/jpetitcolas "jpetitcolas (1 commits)")

---

Tags

markdownsilex

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/mheap-silex-markdown/health.svg)

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

###  Alternatives

[erusev/parsedown

Parser for Markdown.

15.0k151.8M727](/packages/erusev-parsedown)[league/commonmark

Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)

2.9k404.0M700](/packages/league-commonmark)[michelf/php-markdown

PHP Markdown

3.5k52.4M344](/packages/michelf-php-markdown)[league/html-to-markdown

An HTML-to-markdown conversion helper for PHP

1.9k28.6M196](/packages/league-html-to-markdown)[cebe/markdown

A super fast, highly extensible markdown parser for PHP

1.0k32.5M136](/packages/cebe-markdown)

PHPackages © 2026

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