PHPackages                             wucdbm/twig-defer-extension - 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. wucdbm/twig-defer-extension

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

wucdbm/twig-defer-extension
===========================

Defer rendering of TWIG template pieces

v3.1.3(3y ago)07.3k↓50%GPL-3.0PHPPHP &gt;=7.0

Since Jul 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/wucdbm/twig-defer-extension)[ Packagist](https://packagist.org/packages/wucdbm/twig-defer-extension)[ RSS](/packages/wucdbm-twig-defer-extension/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (13)Used By (0)

Using this small library you can "cache" the output of twig code and print it later.

Use the {% defer %} tag to cache your output. Both {% defer NAME EXPRESSION %} and {% defer NAME %} EXPRESSION {% enddefer %} are possible.

```
    {% defer 'someKey' 'defaultValueExpression' %}
    {% defer someKeyVariable 'someDefaultValueExpression' %}
    {% defer 'someKey' %}
        someBlock {{ with Variables }}
    {% enddefer %}

    {% if 'someKey' is deferred %}
    {% if someVariableValue is deferred %}

    {{ someKey|deferred('defaultValue') }}

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

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

Recently: every ~501 days

Total

12

Last Release

1261d ago

Major Versions

1.0.x-dev → v2.0.02017-01-11

2.0.x-dev → 3.0.x-dev2017-06-04

PHP version history (3 changes)v1.0.0PHP ~5.5|~7.0

3.0.x-devPHP ~7.0

v3.1.3PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/56129a0e9c0044d2857f405e0cf44b1c8f53bc86503dfc1c0ac3829401333c5e?d=identicon)[wucdbm](/maintainers/wucdbm)

---

Top Contributors

[![wucdbm](https://avatars.githubusercontent.com/u/1559022?v=4)](https://github.com/wucdbm "wucdbm (15 commits)")

---

Tags

twigtemplating

### Embed Badge

![Health badge](/badges/wucdbm-twig-defer-extension/health.svg)

```
[![Health](https://phpackages.com/badges/wucdbm-twig-defer-extension/health.svg)](https://phpackages.com/packages/wucdbm-twig-defer-extension)
```

###  Alternatives

[timber/timber

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

5.7k3.4M111](/packages/timber-timber)[shoot/shoot

Shoot aims to make providing data to your templates more manageable

40229.9k2](/packages/shoot-shoot)[goetas/twital

PHP templating engine that combines Twig and PHPTal power points

12813.1k1](/packages/goetas-twital)[goetas/twital-bundle

Twital templating engine Symfony Bundle

206.8k](/packages/goetas-twital-bundle)[tommcdo/kohana-twig

Kohana 3.3 module for the popular Twig template engine

241.9k](/packages/tommcdo-kohana-twig)

PHPackages © 2026

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