PHPackages                             sunra/dbug-twig-extension - 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. sunra/dbug-twig-extension

ActiveTwig-extension[Templating &amp; Views](/categories/templating)

sunra/dbug-twig-extension
=========================

Enable for Twig dBug class as filter (https://github.com/sunra/dBug)

0.2.1(10y ago)21.8kMITPHPPHP &gt;=5.3.2

Since Dec 13Pushed 10y ago1 watchersCompare

[ Source](https://github.com/sunra/dbug-twig-extension)[ Packagist](https://packagist.org/packages/sunra/dbug-twig-extension)[ Docs](https://github.com/sunra/dbug-twig-extension)[ RSS](/packages/sunra-dbug-twig-extension/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

dBug Twig Extension
===================

[](#dbug-twig-extension)

dBug -  very fine looking(maybe best) html var dumper for PHP.

This extension for Twig make available dBug in Twig templates, just like:

```
{{ some_variable|dbug }} or {{ some_variable|d }}
```

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

[](#installation)

---

### add to your composer.json

[](#add-to-your-composerjson)

```
"require": {
        ...,
        "sunra/dbug-twig-extension": "0.2.1"
},
```

and run

```
composer.phar update

```

### in Symfony

[](#in-symfony)

add to main config, or to specific environment:

```
# /app/config/config.yml
services:
    ...
    dbug.twig.extension:
        class: Sunra\TwigExtensions\DbugExtension
        tags:
            -  { name: twig.extension }
    ...
```

### in Twig template

[](#in-twig-template)

```
variable|d or variable|dbug
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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 ~1 days

Total

2

Last Release

3799d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b66ec3a106b163a290acec0bfcb2261fac0d31f7381ab8885905b699098b82c?d=identicon)[sunra](/maintainers/sunra)

---

Top Contributors

[![sunra](https://avatars.githubusercontent.com/u/635370?v=4)](https://github.com/sunra "sunra (30 commits)")

---

Tags

twigdumpdbug

### Embed Badge

![Health badge](/badges/sunra-dbug-twig-extension/health.svg)

```
[![Health](https://phpackages.com/badges/sunra-dbug-twig-extension/health.svg)](https://phpackages.com/packages/sunra-dbug-twig-extension)
```

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91292.0M313](/packages/twig-extra-bundle)[twig/intl-extra

A Twig extension for Intl

36663.2M218](/packages/twig-intl-extra)[rcrowe/twigbridge

Adds the power of Twig to Laravel

9105.9M50](/packages/rcrowe-twigbridge)[twig/string-extra

A Twig extension for Symfony String

21946.0M132](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

23018.5M53](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21814.8M161](/packages/symfony-ux-twig-component)

PHPackages © 2026

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