PHPackages                             northernco/markdown-bundle - 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. northernco/markdown-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

northernco/markdown-bundle
==========================

Symfony bundle for including parsedown for converting markdown to html

2.4.0(2mo ago)012.3k↓25.9%PHPPHP &gt;=8.1CI failing

Since Apr 30Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/northernco/NorthernMarkdownBundle)[ Packagist](https://packagist.org/packages/northernco/markdown-bundle)[ RSS](/packages/northernco-markdown-bundle/feed)WikiDiscussions v2.2 Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (24)Used By (0)

Northern Markdown Bundle
========================

[](#northern-markdown-bundle)

Installation
============

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require northernco/markdown-bundle
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require northernco/markdown-bundle
```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    Northern\MarkdownBundle\NorthernMarkdownBundle::class => ['all' => true],
];
```

Usage
=====

[](#usage)

Once the bundle is installed, you can autowire a `MarkdownRepositoryInterface`or `MarkdownParserInterface` into any service or controller. It's recommended to use the `MarkdownRepositoryInterface` as this will cache the results to make subsequent calls much faster.

Example:

```
use Northern\MarkdownBundle\Service\MarkdownParserInterface;
use Northern\MarkdownBundle\Service\MarkdownRepositoryInterface;

class Service {
    private $parser;

    private $repository;

    public function __construct(
        MarkdownParserInterface $parser,
        MarkdownRepositoryInterface $repository
    ) {
        $this->parser     = $parser;
        $this->repository = $repository;
    }

    public function someMethod()
    {
        $text = '# Test';

        // Converts the markdown
        $html = $this->parser->convertMarkdownToHtml($text);
        // or convert and cache the markdown
        $html = $this->repository->getHtmlFromMarkdown($text);
    }
}
```

In Twig, you can use the `md2html` filter:

```
{{ markdown_string|md2html }}
```

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance79

Regular maintenance activity

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~107 days

Recently: every ~62 days

Total

21

Last Release

61d ago

Major Versions

1.2.0 → v2.0.x-dev2022-12-22

PHP version history (4 changes)1.0.0PHP ^7.2

1.1.4PHP &gt;=7.2.5

v1.2.x-devPHP &gt;=7.4

v2.0.x-devPHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a86764618140851d8d7527877aa7d61d4d5c6771444a86355b0b1c6851734d8?d=identicon)[northernco](/maintainers/northernco)

---

Top Contributors

[![cpkdevries](https://avatars.githubusercontent.com/u/4500424?v=4)](https://github.com/cpkdevries "cpkdevries (8 commits)")

### Embed Badge

![Health badge](/badges/northernco-markdown-bundle/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)

PHPackages © 2026

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