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 1y 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 1mo ago

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

15

—

LowBetter than 3% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity18

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://www.gravatar.com/avatar/b6007d3196259b6146c627ef02ee899f8e8b64eaf7cc78e02c12a292e846a711?d=identicon)[LoranRendel](/maintainers/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

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

545.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

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