PHPackages                             iekadou/twig\_pjaxr - 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. iekadou/twig\_pjaxr

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

iekadou/twig\_pjaxr
===================

PJAXR backend for Twig

v0.2.0(11y ago)043MITPHPPHP &gt;=5.3.3

Since Mar 30Pushed 11y ago1 watchersCompare

[ Source](https://github.com/iekadou/twig-pjaxr)[ Packagist](https://packagist.org/packages/iekadou/twig_pjaxr)[ Docs](http://iekadou.com)[ RSS](/packages/iekadou-twig-pjaxr/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (9)Used By (0)

twig-pjaxr
==========

[](#twig-pjaxr)

How to install twig-pjaxr?
--------------------------

[](#how-to-install-twig-pjaxr)

There are just two steps needed to install twig-pjaxr:

1. Add twig-pjaxr to your composer.json:

    ```
    {
        "require": {
            "iekadou/twig_pjaxr": ">=0.2.0",
        }
    }
    ```
2. Add Twig\_Pjaxr\_Extension to the Twig-Engine:

    ```
    $twig->addExtension(new Twig_Pjaxr_Extension());
    ```

How do i use twig-pjaxr?
------------------------

[](#how-do-i-use-twig-pjaxr)

Instead of using the `{% extends %}` tag use `{% pjaxr_extends %}`.

```
{% pjaxr_extends "__base.html" "__pjaxr.html" 'Pjaxr' %}
{% block page %}
...
{% endblock page %}

or

{% pjaxr_extends "__base.html" 'Pjaxr' %}
{% block page %}
...
{% endblock page %}
```

- The first argument is the template, which is extended if the request is not a PJAXR request, or the namespace does not match.
- The second argument is the template, which is extended if the namespace matches. (optional, default is "\_\_pjaxr.html")
- The thrid argument is the namespace which should be tested against, to decide which template should be extended.

What do you need for twig-pjaxr?
--------------------------------

[](#what-do-you-need-for-twig-pjaxr)

1. [PHP](http://php.net) &gt;= 5.3.3
2. [twig](https://github.com/twigphp/Twig)
3. [php-pjaxr](https://github.com/iekadou/php-pjaxr)
4. [jquery-pjaxr](https://github.com/minddust/jquery-pjaxr)

Projects using twig-pjaxr
-------------------------

[](#projects-using-twig-pjaxr)

1. [pjaxr.io](https://github.com/iekadou/pjaxr-io)

If you are using twig-pjaxr, please contact me, and tell me in which projects you are using it. Thank you!

Happy speeding up your twig project!

For further information read [twig-pjaxr on iekadou.com](http://www.iekadou.com/programming/twig-pjaxr)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

Total

7

Last Release

4039d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.3.29

v0.1.3-alpha3PHP &gt;=5.3.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/d319922ea63a4e26e6fc0e4a4f0eadeba85015e9390248d11ca2d227de759e01?d=identicon)[iekadou](/maintainers/iekadou)

---

Tags

templating

### Embed Badge

![Health badge](/badges/iekadou-twig-pjaxr/health.svg)

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

###  Alternatives

[timber/timber

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

5.7k3.4M111](/packages/timber-timber)[jasny/twig-extensions

A set of useful Twig filters

10710.2M8](/packages/jasny-twig-extensions)[jms/twig-js

twig.js, flexible, secure, and high-performance templating engine for Javascript

360389.6k5](/packages/jms-twig-js)[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)
