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

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

loranrendel/timber-commented-include
====================================

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

015PHP

Since Jun 3Pushed 2y agoCompare

[ Source](https://github.com/LoranRendel/timber-commented-include)[ Packagist](https://packagist.org/packages/loranrendel/timber-commented-include)[ RSS](/packages/loranrendel-timber-commented-include/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)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

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% 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/7853801?v=4)[Loran A. Rendel](/maintainers/LoranRendel)[@LoranRendel](https://github.com/LoranRendel)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3851.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.1k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

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

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

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

282.2k](/packages/webkinder-sproutset)

PHPackages © 2026

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