PHPackages                             5ichong/yaf-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. 5ichong/yaf-twig

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

5ichong/yaf-twig
================

Yaf framework using Twig is template engine

v0.0.3(2y ago)12.8kMITPHPPHP &gt;=7.0

Since Jun 21Pushed 2y agoCompare

[ Source](https://github.com/daxiong123/yaf-twig)[ Packagist](https://packagist.org/packages/5ichong/yaf-twig)[ RSS](/packages/5ichong-yaf-twig/feed)WikiDiscussions master Synced 1mo ago

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

yaf-twig
========

[](#yaf-twig)

Yaf using Twig is template engine

---

- [Installation](#installation)
- [Requirements](#requirements)
- [Quick Start and Examples](#quick-start-and-examples)

---

### Installation

[](#installation)

To install Validator, simply:

```
$ composer require 5ichong/yaf-twig

```

For latest commit version:

```
$ composer require 5ichong/yaf-twig @dev

```

### Requirements

[](#requirements)

Validator works with 7.0, 7.1.

### Quick Start and Examples

[](#quick-start-and-examples)

Add to `application.ini`:

```
[product]

application.view.ext = html

[devel : product]

application.twig.debug = true
```

Add to `index.php`:

```
require __DIR__ . '/vendor/autoload.php';
```

Add to `Bootstrap.php`

```
use Yaf\Application;
use Yaf\Dispatcher;

public function _initView(Dispatcher $dispatcher)
{
    $conf = Application::app()->getConfig();

    $options = !empty($conf->twig) ? $conf->twig->toArray() : [];

    $twig = new \Aichong\Twig(APP_PATH . "/views/", $options);

    $dispatcher->setView($twig);
}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

Every ~1122 days

Total

3

Last Release

1009d ago

PHP version history (2 changes)v0.0.1PHP &gt;5.6

v0.0.2PHP &gt;=7.0

### Community

Maintainers

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

---

Top Contributors

[![daxiong123](https://avatars.githubusercontent.com/u/2648157?v=4)](https://github.com/daxiong123 "daxiong123 (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/5ichong-yaf-twig/health.svg)

```
[![Health](https://phpackages.com/badges/5ichong-yaf-twig/health.svg)](https://phpackages.com/packages/5ichong-yaf-twig)
```

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91492.0M315](/packages/twig-extra-bundle)[twig/intl-extra

A Twig extension for Intl

36763.2M221](/packages/twig-intl-extra)[rcrowe/twigbridge

Adds the power of Twig to Laravel

9105.9M50](/packages/rcrowe-twigbridge)[twig/string-extra

A Twig extension for Symfony String

22046.0M133](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

22918.5M55](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21914.8M162](/packages/symfony-ux-twig-component)

PHPackages © 2026

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