PHPackages                             djboris88/timber-commented-include - 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. djboris88/timber-commented-include

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

djboris88/timber-commented-include
==================================

Twig extension for Timber which outputs HTML comments before and after the `include` tag

2.0.0(1y ago)1040.4k↓25%4GPL-3.0PHPPHP &gt;=5.6

Since Dec 3Pushed 1y agoCompare

[ Source](https://github.com/djboris88/timber-commented-include)[ Packagist](https://packagist.org/packages/djboris88/timber-commented-include)[ Docs](https://github.com/djboris88/timber-include-comments)[ RSS](/packages/djboris88-timber-commented-include/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Timber Commented Include
========================

[](#timber-commented-include)

This is a simple port of `djboris88/twig-commented-include` to be used with [Timber](https://github.com/timber/timber) for WordPress.

It helps debugging and navigating through many Twig partials in your project. It outputs a HTML comments before and after each `include` statement while rendering the template. Comments look like this:

```

...

```

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

[](#installation)

To install the latest stable version of this component, open a console and execute the following command:

```
composer require djboris88/timber-commented-include
```

Usage
-----

[](#usage)

To be able to see the commented output, `WP_DEBUG` has to be defined and set as `true` in `wp-config.php` file.

The Twig Extension will automatically be registered and applied. If the WordPress add\_filter function is not available when that happens, it will fail. In that case, you will need to call initialization yourself at an appropriate time after WordPress itself is initialized:

```
if (function_exists('\Djboris88\Timber\initialize_filters')) {
  \Djboris88\Timber\initialize_filters();
}
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.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 ~691 days

Total

4

Last Release

640d ago

Major Versions

1.1.0 → 2.0.02024-08-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/98bd77a38d1f4c7bc70ec70270636ad2860130b1c1888e9a46c36c7a0b11a754?d=identicon)[djboris88](/maintainers/djboris88)

---

Top Contributors

[![djboris88](https://avatars.githubusercontent.com/u/9459880?v=4)](https://github.com/djboris88 "djboris88 (7 commits)")[![benvoynick](https://avatars.githubusercontent.com/u/1313631?v=4)](https://github.com/benvoynick "benvoynick (1 commits)")[![graham73may](https://avatars.githubusercontent.com/u/6642498?v=4)](https://github.com/graham73may "graham73may (1 commits)")

---

Tags

twigdebughtmlcomments

### Embed Badge

![Health badge](/badges/djboris88-timber-commented-include/health.svg)

```
[![Health](https://phpackages.com/badges/djboris88-timber-commented-include/health.svg)](https://phpackages.com/packages/djboris88-timber-commented-include)
```

###  Alternatives

[latte/latte

☕ Latte: the intuitive and fast template engine for those who want the most secure PHP sites. Introduces context-sensitive escaping.

1.3k15.7M680](/packages/latte-latte)[twig/string-extra

A Twig extension for Symfony String

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

A Twig extension for Markdown

12114.3M83](/packages/twig-markdown-extra)[twig/html-extra

A Twig extension for HTML

777.6M41](/packages/twig-html-extra)[spatie/laravel-blade-comments

Add debug comments to your rendered output

177325.5k](/packages/spatie-laravel-blade-comments)[spress/spress

Static site generator with blogs support

37436.2k](/packages/spress-spress)

PHPackages © 2026

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