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(3mo ago)012.6k↓57%PHPPHP &gt;=8.1CI failing

Since Apr 30Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/northernco/NorthernMarkdownBundle)[ Packagist](https://packagist.org/packages/northernco/markdown-bundle)[ RSS](/packages/northernco-markdown-bundle/feed)WikiDiscussions v2.4 Synced 2d 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

51

—

FairBetter than 95% of packages

Maintenance80

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity75

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

108d 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 (12 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

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

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