PHPackages                             vinyvicente/phalcon-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. vinyvicente/phalcon-twig

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

vinyvicente/phalcon-twig
========================

Twig View Handler to Phalcon PHP

v2.0(2y ago)43174MITPHPPHP &gt;=7.1.3

Since Mar 27Pushed 2y ago3 watchersCompare

[ Source](https://github.com/vinyvicente/phalcon-twig)[ Packagist](https://packagist.org/packages/vinyvicente/phalcon-twig)[ RSS](/packages/vinyvicente-phalcon-twig/feed)WikiDiscussions master Synced 2mo ago

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

phalcon-twig
============

[](#phalcon-twig)

[![Latest Stable Version](https://camo.githubusercontent.com/0b9a17b03a1a3ef184f18d6304876e3f74adc9dbd274e2812fc787b2f9239f17/68747470733a2f2f706f7365722e707567782e6f72672f76696e79766963656e74652f7068616c636f6e2d747769672f762f737461626c65)](https://packagist.org/packages/vinyvicente/phalcon-twig)[![Total Downloads](https://camo.githubusercontent.com/ab6ccbc85abd1a9ac11b74f554ed68f749234aa4a60f24eecc9b3278eecc16fb/68747470733a2f2f706f7365722e707567782e6f72672f76696e79766963656e74652f7068616c636f6e2d747769672f646f776e6c6f616473)](https://packagist.org/packages/vinyvicente/phalcon-twig)[![License](https://camo.githubusercontent.com/fc089d7914da7aa1cacd55bb510bfd3a1c3706bfbe265ff4d91f33acce234be3/68747470733a2f2f706f7365722e707567782e6f72672f76696e79766963656e74652f7068616c636f6e2d747769672f6c6963656e7365)](https://packagist.org/packages/vinyvicente/phalcon-twig)[![Monthly Downloads](https://camo.githubusercontent.com/6823bb571b8de9143a868310867a3f9fdaff5c585b0914bada824eea71625622/68747470733a2f2f706f7365722e707567782e6f72672f76696e79766963656e74652f7068616c636f6e2d747769672f642f6d6f6e74686c79)](https://packagist.org/packages/vinyvicente/phalcon-twig)[![Daily Downloads](https://camo.githubusercontent.com/fd037b0dedb6b97fe93f97210be24f462f8313fd16b103ff2cc2a355926cb345/68747470733a2f2f706f7365722e707567782e6f72672f76696e79766963656e74652f7068616c636f6e2d747769672f642f6461696c79)](https://packagist.org/packages/vinyvicente/phalcon-twig)[![composer.lock](https://camo.githubusercontent.com/9fd25c31a8f3349b897329057fb6296ef6670c05fc410bc9df56d02f00e62477/68747470733a2f2f706f7365722e707567782e6f72672f76696e79766963656e74652f7068616c636f6e2d747769672f636f6d706f7365726c6f636b)](https://packagist.org/packages/vinyvicente/phalcon-twig)

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

[](#requirements)

```
PHP >= 5.6
Phalcon >= 3.x

```

Install
-------

[](#install)

```
composer require vinyvicente/phalcon-twig

```

### Configuration

[](#configuration)

- Register in your DI configuration view, registering new view engine.

```
    $di = new \Phalcon\Di\FactoryDefault();

    $di['view'] = function () {
        $view = new View();
        $view->setViewsDir('app/views/');
        $view->registerEngines([
            View\Engine\Twig::DEFAULT_EXTENSION => function ($view, $di) {
                return new View\Engine\Twig($view, $di, [
                    'cache' => __DIR__ . '/app/cache/',
                ]);
            }
        ]);

        return $view;
    };
```

### Important

[](#important)

```
See Twig Docs: http://twig.sensiolabs.org/documentation

```

Enjoy!

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

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

Total

3

Last Release

990d ago

Major Versions

v1.1 → v2.02023-08-23

PHP version history (3 changes)v1.0PHP &gt;=5.6

v1.1PHP &gt;=5.6 || &gt;=7.0

v2.0PHP &gt;=7.1.3

### Community

Maintainers

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

---

Top Contributors

[![vinyvicente](https://avatars.githubusercontent.com/u/513934?v=4)](https://github.com/vinyvicente "vinyvicente (8 commits)")

---

Tags

miscellaneousphalcon-templatephalcon-twigtemplate-enginetwig

### Embed Badge

![Health badge](/badges/vinyvicente-phalcon-twig/health.svg)

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

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91292.0M313](/packages/twig-extra-bundle)[twig/intl-extra

A Twig extension for Intl

36663.2M218](/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

21946.0M132](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

23018.5M53](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21814.8M161](/packages/symfony-ux-twig-component)

PHPackages © 2026

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