PHPackages                             tadcka/smart-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. tadcka/smart-twig

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

tadcka/smart-twig
=================

Tadcka smart twig library

v0.1.0(10y ago)24.6k[1 issues](https://github.com/tadcka/SmartTwig/issues)MITPHPPHP &gt;=5.4

Since Apr 2Pushed 10y ago1 watchersCompare

[ Source](https://github.com/tadcka/SmartTwig)[ Packagist](https://packagist.org/packages/tadcka/smart-twig)[ Docs](https://github.com/tadcka/SmartTwig)[ RSS](/packages/tadcka-smart-twig/feed)WikiDiscussions master Synced 3w ago

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

SmartTwig
=========

[](#smarttwig)

[![Build Status](https://camo.githubusercontent.com/c041ccff7498e2f9b1a615a37d00f0235848a0f5c214d04f182969d532c254aa/68747470733a2f2f7472617669732d63692e6f72672f746164636b612f536d617274547769672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tadcka/SmartTwig)

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

[](#installation)

Install via [Composer](https://getcomposer.org/)

```
composer require tadcka/smart-twig "dev-master"

```

Templates Hinting
-----------------

[](#templates-hinting)

SmartTwig allows to enable templates hinting and in such a way helps to frontend developer to find proper template. This option can be enabled in application configuration with redefining base template class for twig (example for Symfony application):

```
twig:
    base_template_class: Tadcka\SmartTwig\Template
```

As a result of such change user can find HTML comments on the page

```

...

```

or see "template\_name" variable for AJAX requests that expecting JSON

```
"template_name":"template_name.html.twig"
```

The templates hinting is enabled by default in development mode.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

3741d ago

### Community

Maintainers

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

---

Top Contributors

[![tadcka](https://avatars.githubusercontent.com/u/2020827?v=4)](https://github.com/tadcka "tadcka (5 commits)")

---

Tags

twigfrontend-toolssmart twig

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tadcka-smart-twig/health.svg)

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

###  Alternatives

[timber/timber

Create WordPress themes with beautiful OOP code and the Twig Template Engine

5.7k3.6M127](/packages/timber-timber)[twig/intl-extra

A Twig extension for Intl

36567.2M320](/packages/twig-intl-extra)[symfony/ux-twig-component

Twig components for Symfony

22017.2M313](/packages/symfony-ux-twig-component)[symfony/ux-live-component

Live components for Symfony

1636.5M115](/packages/symfony-ux-live-component)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

22919.7M81](/packages/twig-cssinliner-extra)[twig/inky-extra

A Twig extension for the inky email templating engine

16613.2M70](/packages/twig-inky-extra)

PHPackages © 2026

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