PHPackages                             ppi/twig-module - 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. ppi/twig-module

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

ppi/twig-module
===============

Twig template engine module for PPI2

1.0(10y ago)2253MITPHP

Since May 1Pushed 10y ago2 watchersCompare

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

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

PPI Twig Module
===============

[](#ppi-twig-module)

[Twig](http://twig.sensiolabs.org/ "The flexible, fast, and secure template engine for PHP") template engine module for [PPI2](http://ppi.io/ "PPI Framework - The PHP Meta Framework!").

[![Build Status](https://camo.githubusercontent.com/34e322a5d3800661de9d481c17e37222b31490eb12fb157752e24b96a8ca307f/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7070692f7070692d747769672d6d6f64756c652e706e67)](http://travis-ci.org/ppi/ppi-twig-module)

Twig
----

[](#twig)

[![](https://camo.githubusercontent.com/57574f30229cf61e421e97a0d79a3f86a7c700a072531ff4e55c267286503cb4/687474703a2f2f747769672e73656e73696f6c6162732e6f72672f696d616765732f747769672d6c6f676f2e706e67)](https://camo.githubusercontent.com/57574f30229cf61e421e97a0d79a3f86a7c700a072531ff4e55c267286503cb4/687474703a2f2f747769672e73656e73696f6c6162732e6f72672f696d616765732f747769672d6c6f676f2e706e67)

> Twig is a template language for PHP, released under the new BSD license.

> Twig uses a syntax similar to the Django and Jinja template languages which inspired the Twig runtime environment.

Requirements
------------

[](#requirements)

- [PHP](http://php.net/ "PHP: Hypertext Preprocessor") 5.3.3 and up
- [PPI Framework 2](http://ppi.io/ "PPI Framework - The PHP Meta Framework!") (2.1.x)

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

[](#installation)

### 1. Install Composer

[](#1-install-composer)

If you don't have Composer yet, download it following the instructions on  or just run the following command:

```
curl -s http://getcomposer.org/installer | php
```

### 2. Add ppi/twig-module to your composer.json and install it

[](#2-add-ppitwig-module-to-your-composerjson-and-install-it)

```
$ php composer.phar require ppi/twig-module dev-master
```

Composer will install the module to your project's `vendor/ppi` directory.

### 3. Enable the module

[](#3-enable-the-module)

Enable this module by editing `app/config/modules.yml`:

```
modules:
    - PPI\TwigModule
    # ...
```

License
-------

[](#license)

This module is licensed under the MIT License. See the [LICENSE file](https://github.com/ppi/ppi-twig-module/blob/master/LICENSE) for details.

Authors
-------

[](#authors)

- Paul Dragoonis -  ~ [twitter.com/dr4goonis](http://twitter.com/dr4goonis)
- Vítor Brandão -  ~ [twitter.com/noiselabs](http://twitter.com/noiselabs)

See also the list of [contributors](https://github.com/ppi/ppi-twig-module/contributors) who participated in this project.

Submitting bugs and feature requests
------------------------------------

[](#submitting-bugs-and-feature-requests)

Bugs and feature requests are tracked on [GitHub](https://github.com/ppi/ppi-twig-module/issues).

About PPI
---------

[](#about-ppi)

[![](https://camo.githubusercontent.com/6be34dae981d493a51557c4a1c0d31273bac44d149c967ba9b453dbee343bf8c/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f372f37642f5070692d6672616d65776f726b2d6c6f676f2e706e67)](https://camo.githubusercontent.com/6be34dae981d493a51557c4a1c0d31273bac44d149c967ba9b453dbee343bf8c/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f372f37642f5070692d6672616d65776f726b2d6c6f676f2e706e67)

> PPI is an open source PHP meta-framework. It has taken the good bits from Symfony2, ZendFramework2 &amp; Doctrine2 and combined them together to create a solid and very easy web application framework. It can be considered the boilerplate of PHP frameworks.

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 61.1% 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

3916d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9025c7b030862eabb8877bfe173b2358db04463e16d50703c6d9287e55fe5804?d=identicon)[dragoonis](/maintainers/dragoonis)

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

---

Top Contributors

[![vitorbrandao](https://avatars.githubusercontent.com/u/109226?v=4)](https://github.com/vitorbrandao "vitorbrandao (11 commits)")[![dragoonis](https://avatars.githubusercontent.com/u/146321?v=4)](https://github.com/dragoonis "dragoonis (7 commits)")

---

Tags

twigppitemplatingview

### Embed Badge

![Health badge](/badges/ppi-twig-module/health.svg)

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

###  Alternatives

[timber/timber

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

5.7k3.4M108](/packages/timber-timber)[wyrihaximus/twig-view

Twig powered View for CakePHP

804.7M1](/packages/wyrihaximus-twig-view)[shoot/shoot

Shoot aims to make providing data to your templates more manageable

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

PHP templating engine that combines Twig and PHPTal power points

12813.0k1](/packages/goetas-twital)[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)
