PHPackages                             core23/commonmark-formatter-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. core23/commonmark-formatter-bundle

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

core23/commonmark-formatter-bundle
==================================

This bundle provides a commonmark formatter for the Sonata FormatterBundle.

05PHP

Since Apr 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/core23/CommonMarkFormatterBundle)[ Packagist](https://packagist.org/packages/core23/commonmark-formatter-bundle)[ RSS](/packages/core23-commonmark-formatter-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CommonMarkFormatterBundle
=========================

[](#commonmarkformatterbundle)

[![Latest Stable Version](https://camo.githubusercontent.com/b6a9ad39c23cb4bc4b7a2912fadda08e47858d0f6ef839c1a4371189fcf8e3ab/68747470733a2f2f706f7365722e707567782e6f72672f636f726532332f636f6d6d6f6e6d61726b2d666f726d61747465722d62756e646c652f762f737461626c65)](https://packagist.org/packages/core23/commonmark-formatter-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/ed7fe2bfc1e5f35fcaa5036814f968f724843aa3bffa6c04561f489bf8b9c02a/68747470733a2f2f706f7365722e707567782e6f72672f636f726532332f636f6d6d6f6e6d61726b2d666f726d61747465722d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/core23/commonmark-formatter-bundle)[![License](https://camo.githubusercontent.com/f2e7d21c6ee7d00fc9e85ded3259871533b59e97e9b43e66d9b49457aea9b919/68747470733a2f2f706f7365722e707567782e6f72672f636f726532332f636f6d6d6f6e6d61726b2d666f726d61747465722d62756e646c652f6c6963656e7365)](https://packagist.org/packages/core23/commonmark-formatter-bundle)

[![Total Downloads](https://camo.githubusercontent.com/ab38f2253a2d826d0380fe5578bcc2b8dee9b7cd92dec11c08f9bee9f810f932/68747470733a2f2f706f7365722e707567782e6f72672f636f726532332f636f6d6d6f6e6d61726b2d666f726d61747465722d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/core23/commonmark-formatter-bundle)[![Monthly Downloads](https://camo.githubusercontent.com/33eac66ada324e182900f6c831cb0d6088742be7eed3c0f3ce4d4daf1bc7c15d/68747470733a2f2f706f7365722e707567782e6f72672f636f726532332f636f6d6d6f6e6d61726b2d666f726d61747465722d62756e646c652f642f6d6f6e74686c79)](https://packagist.org/packages/core23/commonmark-formatter-bundle)[![Daily Downloads](https://camo.githubusercontent.com/a9b8e46c5021f62f1fccc48b87ff03494352f1e2840d510aaa33f44f594e5d98/68747470733a2f2f706f7365722e707567782e6f72672f636f726532332f636f6d6d6f6e6d61726b2d666f726d61747465722d62756e646c652f642f6461696c79)](https://packagist.org/packages/core23/commonmark-formatter-bundle)

[![Continuous Integration](https://github.com/core23/CommonMarkFormatterBundle/workflows/Continuous%20Integration/badge.svg)](https://github.com/core23/CommonMarkFormatterBundle/actions)[![Code Coverage](https://camo.githubusercontent.com/a6c5b44d2ccd0e0b54d4ae5edfa90e806cfb58e7af1b256853211197781165b0/68747470733a2f2f636f6465636f762e696f2f67682f636f726532332f436f6d6d6f6e4d61726b466f726d617474657242756e646c652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/core23/CommonMarkFormatterBundle)

This bundle provides a [commonmark](https://github.com/thephpleague/commonmark) formatter for the [Sonata FormatterBundle](https://github.com/sonata-project/SonataFormatterBundle).

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

[](#installation)

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

```
composer require core23/commonmark-formatter-bundle

```

### Enable the Bundle

[](#enable-the-bundle)

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

```
// config/bundles.php

return [
    // ...
    Core23\CommonMarkFormatterBundle\Core23CommonMarkFormatterBundle::class => ['all' => true],
];

```

To use the new formatter, register the formatter in `config/packages/sonata_formatter.yaml` file of your project:

```
sonata_formatter:
    formatters:
        commonmark:
            service: core23_commonmark_formatter.formatter

```

Add markdown extensions
-----------------------

[](#add-markdown-extensions)

If you want to use some [Github-Flavored Markdown extensions](https://github.com/thephpleague/commonmark-extras), you need download the extension and register it inside the `config/services.yaml` file of your project:

```
services:
    League\CommonMark\Extras\CommonMarkExtrasExtension:
        tags: [ 'core23_commonmark_formatter.extension' ]

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/46179d0f1a863a1a71c634a413d857f8428ad9a8273cd065ba4f0e864730dde9?d=identicon)[core23](/maintainers/core23)

---

Top Contributors

[![core23](https://avatars.githubusercontent.com/u/3440437?v=4)](https://github.com/core23 "core23 (31 commits)")[![kodiakhq[bot]](https://avatars.githubusercontent.com/in/29196?v=4)](https://github.com/kodiakhq[bot] "kodiakhq[bot] (16 commits)")

---

Tags

bundlecommonmarkformattermarkdownphpsonatasonata-formattersymfonysymfony-bundle

### Embed Badge

![Health badge](/badges/core23-commonmark-formatter-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/core23-commonmark-formatter-bundle/health.svg)](https://phpackages.com/packages/core23-commonmark-formatter-bundle)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M283](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M226](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M63](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M344](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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