PHPackages                             kint-php/kint-twig - 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. kint-php/kint-twig

ActiveLibrary[Templating &amp; Views](/categories/templating)

kint-php/kint-twig
==================

Twig extension for Kint integration

6.0(1y ago)13933.5k↓18.4%16GPL-3.0PHPPHP &gt;=7.4CI passing

Since Jun 16Pushed 1y ago2 watchersCompare

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

READMEChangelog (3)Dependencies (5)Versions (14)Used By (6)

Kint-Twig
=========

[](#kint-twig)

A Twig extension providing the familiar Kint functionality for dumping data.

Note that features like the mini-trace, variable name detection, and modifiers will not work from inside twig templates.

Usage
-----

[](#usage)

```
$twig->addExtension(new Kint\Twig\TwigExtension());
```

```
{{ d(data, richMode, moreData, evenMoreData) }}

{{ s(data, plainMode) }}
```

Custom function names dumpers:

```
$ext = new Kint\Twig\TwigExtension();

$aliases = $ext->getAliases();

// Different alias for existing dumper
$aliases['dump'] = $aliases['d'];

// Custom dumper
$text = new Kint\Kint(new Kint\Parser\Parser(), new Kint\Renderer\TextRenderer());
$text->setStatesFromStatics(Kint\Kint::getStatics());

$aliases['text'] = $text;

$ext->setAliases($aliases);

$twig->addExtension($ext);
```

```
{{ dump() }}
{{ text() }}
```

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance43

Moderate activity, may be stable

Popularity46

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity70

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

Recently: every ~561 days

Total

13

Last Release

544d ago

Major Versions

1.1.2 → 2.02018-09-29

1.x-dev → 3.02020-07-03

3.0 → 4.02022-02-10

4.0 → 5.02022-11-22

5.0 → 6.02024-11-20

PHP version history (5 changes)1.1.2PHP ^5.3 || ^7.0

2.0PHP &gt;= 5.3.9

3.0PHP &gt;= 7.0

5.0PHP &gt;=7.1

6.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/f9b630b608f15e965f261330c4afc9aeaebc01f57300a83c1082164387f95bfd?d=identicon)[JnvSor](/maintainers/JnvSor)

---

Top Contributors

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

---

Tags

debugdevdeveloper-toolskintphptwigtwigdebugdump

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kint-php-kint-twig/health.svg)

```
[![Health](https://phpackages.com/badges/kint-php-kint-twig/health.svg)](https://phpackages.com/packages/kint-php-kint-twig)
```

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91492.0M315](/packages/twig-extra-bundle)[twig/intl-extra

A Twig extension for Intl

36763.2M221](/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

22046.0M133](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

22918.5M55](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21914.8M162](/packages/symfony-ux-twig-component)

PHPackages © 2026

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