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

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

bretrzaun/silex-markdown
========================

A lightweight markdown service provider for Silex

2.0.0(9y ago)0125MITPHPPHP &gt;=7.0

Since Oct 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/bretrzaun/silex-markdown)[ Packagist](https://packagist.org/packages/bretrzaun/silex-markdown)[ Docs](http://github.com/bretrzaun/silex-markdown)[ RSS](/packages/bretrzaun-silex-markdown/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

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

[](#silex-markdown)

[![Build Status](https://camo.githubusercontent.com/0073cd2867dc0438c38b18d9fa0af1c2a4d1424003f336a501e15d221b75cbed/68747470733a2f2f7472617669732d63692e6f72672f62726574727a61756e2f73696c65782d6d61726b646f776e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bretrzaun/silex-markdown)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/10c30dcb46de5dcbde72efff7240557a296299dc2be2c7f832a92d0b109013d4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62726574727a61756e2f53696c65782d4d61726b646f776e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bretrzaun/Silex-Markdown/?branch=master)

A lightweight markdown service provider for Silex. Uses the [michelf/php-markdown](https://packagist.org/packages/michelf/php-markdown) markdown parser.

Based on: [nicl/silex-markdown](https://github.com/nicl/Silex-Markdown)

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

[](#installation)

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

```
{
    "require": {
        "bretrzaun/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 `transform` method as follows:

```
$app['markdown']->transform($txt);

```

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

[](#configuration)

### Parameters

[](#parameters)

- **markdown.factory**: Name of the service that will create `Michelf\MarkdownInterface` 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 `Michelf\MarkdownInterface`.

Tests
-----

[](#tests)

If you wish to run the tests then, from the silex-markdown root directory run:

```
composer test

```

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 53.7% 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 ~524 days

Total

4

Last Release

3479d ago

Major Versions

1.2.0 → 2.0.02017-02-04

PHP version history (2 changes)1.2.0PHP &gt;5.5

2.0.0PHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/277782?v=4)[Bret R. Zaun](/maintainers/bretrzaun)[@bretrzaun](https://github.com/bretrzaun)

---

Top Contributors

[![nicl](https://avatars.githubusercontent.com/u/858402?v=4)](https://github.com/nicl "nicl (22 commits)")[![bretrzaun](https://avatars.githubusercontent.com/u/277782?v=4)](https://github.com/bretrzaun "bretrzaun (11 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

markdownsilexsilex-providermarkdownsilex

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[vtalbot/markdown

Markdown compiler for Laravel 5

100251.5k3](/packages/vtalbot-markdown)[kartik-v/yii2-markdown

Advanced Markdown editing and conversion utilities for Yii Framework 2.0

89276.5k6](/packages/kartik-v-yii2-markdown)[maglnet/magl-markdown

Provides a ZF2 View Helper to render markdown syntax. It uses third-party libraries for the rendering and you can switch between different renderers.

22202.1k4](/packages/maglnet-magl-markdown)[joomlatools/pages

Joomlatools Pages is a very fast just-in-time page generator and flexible framework that makes building websites with any CMS, API, or database fun again. It can be installed in Joomla as a component, or be used standalone

473.7k](/packages/joomlatools-pages)[cartalyst/interpret

A driver-based content rendering package, with support for HTML, Markdown &amp; plain text. You can register custom drivers for custom content types.

1918.5k](/packages/cartalyst-interpret)[jeroen/mediawiki-github

Simple MediaWiki extension for embedding GitHub hosted content in wiki pages. Supports markdown rendering and syntax highlighting.

334.4k](/packages/jeroen-mediawiki-github)

PHPackages © 2026

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