PHPackages                             pk/markdownify-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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. pk/markdownify-bundle

AbandonedArchivedSymfony-bundle[Parsing &amp; Serialization](/categories/parsing)

pk/markdownify-bundle
=====================

Symfony2 bundle that integrates the Markdownify class as a service

v4.1.0(7y ago)3110.9k1MITPHPPHP &gt;=5.5.9

Since Feb 15Pushed 6y ago1 watchersCompare

[ Source](https://github.com/pkruithof/markdownify-bundle)[ Packagist](https://packagist.org/packages/pk/markdownify-bundle)[ Docs](http://github.com/pkruithof/markdownify-bundle)[ RSS](/packages/pk-markdownify-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (8)Used By (0)

NOTE: This project is deprecated and will be archived!
======================================================

[](#note-this-project-is-deprecated-and-will-be-archived)

When Symfony was in version 2 (and later 3) this bundle made a lot more sense than it does now. With the introduction of Symfony 4, bundles become less and less important. Furthermore, this bundle mainly adds a service, which you can easily configure in your Symfony application. You don't need a bundle for that.

For these reasons, the project is deprecated and will be archived in some time. If you are using this, please consider removing it and configure the service like this:

```
services:
  markdownify:
    class: Markdownify\ConverterExtra
    arguments: [] # optionally specify some arguments
```

Original readme:
================

[](#original-readme)

Provides Symfony integration for the Markdownify/Markdownify\_Extra scripts.

The original Markdownify from [Milian Wolff](http://milianw.de/projects/markdownify/)has been refactored by myself (see [modifications](#modifications)) and later by [Pixel418](https://github.com/Pixel418/Markdownify).

The latter is now merged back into this bundle as a dependency, so that the ongoing development in that repo is also available in this bundle.

Requirements
------------

[](#requirements)

The bundle is built for Symfony 2.7 and up. It should work on older versions, but they are not supported.

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

[](#installation)

```
php composer.phar require "pk/markdownify-bundle:^4.0"

```

### AppKernel.php

[](#appkernelphp)

Add to `app/AppKernel.php`:

```
new PK\MarkdownifyBundle\PKMarkdownifyBundle()
```

### Configuration

[](#configuration)

The configuration is optional as all options have defaults.

```
pk_markdownify:
  # Where to put the link references:
  # * 0 for after the content (default)
  # * 1 for after each paragraph
  # * 2 for in the paragraph, directly after the link text
  link_position: 0

  # When larger than the minimal width (25), the body will be
  # wrapped to this width. Set to false to disable wrapping (default)
  body_width: false

  # Whether to keep html tags which cannot be converted to markdown
  keep_html: false
```

Usage
-----

[](#usage)

The bundle registers a `markdownify` service. Use it as you would use the Markdownify class:

```
$converter = $container->get('markdownify');
$converter->parseString('Heading');
// Returns: # Heading
```

**NOTE**: Before version 3.0, the Markdownify classes were included in this bundle, which had a different namespace than the `\Markdownify` one used currently. If you use this namespace somewhere in your code, be sure to update them when upgrading to 3.0.

Modifications
-------------

[](#modifications)

The following modifications have been applied to the original Markdownify code.

- PSR 0 to 2 coding standards fix
- Organised properties and methods (properties first, then methods)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Credits
-------

[](#credits)

- [Peter Kruithof](https://github.com/pkruithof)
- [All Contributors](../../contributors)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 93.8% 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 ~380 days

Recently: every ~541 days

Total

7

Last Release

2561d ago

Major Versions

v2.1.2 → v3.0.02014-09-26

v3.0.1 → v4.0.02015-12-16

PHP version history (3 changes)v2.1.0PHP &gt;=5.3.0

v3.0.0PHP &gt;=5.3.3

v4.0.0PHP &gt;=5.5.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/49e70c4936c5121b835d48680dcf4bb57d21724c533dd99591e80101e4a25dd6?d=identicon)[pkruithof](/maintainers/pkruithof)

---

Top Contributors

[![pkruithof](https://avatars.githubusercontent.com/u/330828?v=4)](https://github.com/pkruithof "pkruithof (30 commits)")[![edhgoose](https://avatars.githubusercontent.com/u/1108173?v=4)](https://github.com/edhgoose "edhgoose (1 commits)")[![inmarelibero](https://avatars.githubusercontent.com/u/254808?v=4)](https://github.com/inmarelibero "inmarelibero (1 commits)")

---

Tags

markdownmarkdownify

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pk-markdownify-bundle/health.svg)

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

###  Alternatives

[erusev/parsedown

Parser for Markdown.

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

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

3.0k404.0M702](/packages/league-commonmark)[michelf/php-markdown

PHP Markdown

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

An HTML-to-markdown conversion helper for PHP

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

A super fast, highly extensible markdown parser for PHP

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

The HTML to Markdown converter for PHP

196800.8k8](/packages/pixel418-markdownify)

PHPackages © 2026

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