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

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

nicl/silex-markdown
===================

Simple Silex wrapper for the Dragonfly markdown library

1.1.0(12y ago)1118.8k5[2 issues](https://github.com/nicl/Silex-Markdown/issues)MITPHP

Since Oct 16Pushed 12y ago1 watchersCompare

[ Source](https://github.com/nicl/Silex-Markdown)[ Packagist](https://packagist.org/packages/nicl/silex-markdown)[ Docs](http://github.com/nicl/silex-markdown)[ RSS](/packages/nicl-silex-markdown/feed)WikiDiscussions master Synced 4w ago

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

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

[](#silex-markdown)

A lightweight markdown service provider for Silex. Uses the [Dragonfly](https://github.com/dflydev/dflydev-markdown) markdown parser.

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

[](#installation)

Recommended installation is [through composer](http://getcomposer.org). Just add the following to your `composer.json` file:

```
{
    "minimum-stability": "dev",
    "require": {
        "nicl/silex-markdown": "1.0.*"
    }
}

```

Usage
-----

[](#usage)

To use the service provider first register it:

```
$app->register(new MarkdownServiceProvider());

```

You can then use the markdown filter in Twig files. For example:

```
{{ '#Hello World'|markdown }}

```

In addition, you also have access to the Markdown parser itself. Simply instantiate it and call the `transformMarkdown` method as follows:

```
use dflydev\markdown\MarkdownParser;

$parser = new MarkdownParser();
$parser->transformMarkdown($txt);

```

Configuration
-------------

[](#configuration)

### Parameters

[](#parameters)

- **markdown.factory**: Name of the service that will create `dflydev\markdown\IMarkdownParser` instances, string.
- **markdown.parser**: Name of the built-in parser to use, string. *Default: markdown*

    Available options:

    - **markdown**: Standard Markdown parser
    - **extra**: Markdown Extra parser

### Services

[](#services)

- **markdown**: Markdown parser, instance of `dflydev\markdown\IMarkdownParser`.

    If **markdown.factory** is defined, that service will be used to create the `IMarkdownParser` instance. Otherwise, **markdown.parser**will be examined and an instance of the appropriate class will be instantiated.

Tests
-----

[](#tests)

If you wish to run the tests you need to have [PHPUnit](https://github.com/sebastianbergmann/phpunit/) installed. Then, from the silex-markdown root directory run:

```
phpunit

```

(You may need to adapt the phpunit command and paths depending on your configuration.)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 73.3% 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 ~293 days

Total

2

Last Release

4659d ago

### Community

Maintainers

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

---

Top Contributors

[![nicl](https://avatars.githubusercontent.com/u/858402?v=4)](https://github.com/nicl "nicl (22 commits)")[![mlebkowski](https://avatars.githubusercontent.com/u/848731?v=4)](https://github.com/mlebkowski "mlebkowski (3 commits)")[![simensen](https://avatars.githubusercontent.com/u/191200?v=4)](https://github.com/simensen "simensen (3 commits)")[![dazz](https://avatars.githubusercontent.com/u/182954?v=4)](https://github.com/dazz "dazz (1 commits)")[![javiereguiluz](https://avatars.githubusercontent.com/u/73419?v=4)](https://github.com/javiereguiluz "javiereguiluz (1 commits)")

---

Tags

markdown

### Embed Badge

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

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

###  Alternatives

[erusev/parsedown

Parser for Markdown.

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

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

2.9k404.0M698](/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)[kindari/laravel-markdown

Markdown Integration with Laravel's View system

411.1k](/packages/kindari-laravel-markdown)

PHPackages © 2026

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