PHPackages                             core23/twig-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. [Templating &amp; Views](/categories/templating)
4. /
5. core23/twig-formatter-bundle

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

core23/twig-formatter-bundle
============================

This bundle provides a twig formatter for the Sonata FormatterBundle.

05[1 PRs](https://github.com/core23/TwigFormatterBundle/pulls)PHP

Since Dec 11Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

TwigFormatterBundle
===================

[](#twigformatterbundle)

[![Latest Stable Version](https://camo.githubusercontent.com/c27180772a9896db9511496457d55ce4082ad0beb0ca08a66b4f9a2e2b371787/68747470733a2f2f706f7365722e707567782e6f72672f636f726532332f747769672d666f726d61747465722d62756e646c652f762f737461626c65)](https://packagist.org/packages/core23/twig-formatter-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/0719c2190dcdcaf9cd6345136bd5ef60a0eac887b877b8a31b1f9f043c05ac65/68747470733a2f2f706f7365722e707567782e6f72672f636f726532332f747769672d666f726d61747465722d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/core23/twig-formatter-bundle)[![License](https://camo.githubusercontent.com/e3b54018620ddb54f15678d86247ae916f3a445786797548fcc335a1056f4f1f/68747470733a2f2f706f7365722e707567782e6f72672f636f726532332f747769672d666f726d61747465722d62756e646c652f6c6963656e7365)](https://packagist.org/packages/core23/twig-formatter-bundle)

[![Total Downloads](https://camo.githubusercontent.com/808c5532d1f7d3b42d34e1baf11590c9a7c3492d28f07be6dce3e780f3401564/68747470733a2f2f706f7365722e707567782e6f72672f636f726532332f747769672d666f726d61747465722d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/core23/twig-formatter-bundle)[![Monthly Downloads](https://camo.githubusercontent.com/bb5e61c060333e9f258e12d87f8d9135c79bbe99a8c9f5d3f3ac8269c49144b2/68747470733a2f2f706f7365722e707567782e6f72672f636f726532332f747769672d666f726d61747465722d62756e646c652f642f6d6f6e74686c79)](https://packagist.org/packages/core23/twig-formatter-bundle)[![Daily Downloads](https://camo.githubusercontent.com/ba52e3ca1a474e2e672525fe010f0f08b099a9e7489db85e0172135f23910744/68747470733a2f2f706f7365722e707567782e6f72672f636f726532332f747769672d666f726d61747465722d62756e646c652f642f6461696c79)](https://packagist.org/packages/core23/twig-formatter-bundle)

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

This bundle provides a [twig](https://github.com/twigphp/Twig) 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/twig-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\TwigFormatterBundle\Core23TwigFormatterBundle::class => ['all' => true],
];
```

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

```
sonata_formatter:
    formatters:
        twig:
            service: core23_twig_formatter.formatter
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.1% 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://avatars.githubusercontent.com/u/3440437?v=4)[Christian Gripp](/maintainers/core23)[@core23](https://github.com/core23)

---

Top Contributors

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

---

Tags

bundleformatterphpsonatasonata-formattersymfonysymfony-bundletwig

### Embed Badge

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

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

281.8k](/packages/webkinder-sproutset)

PHPackages © 2026

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