PHPackages                             hofa/lumen-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. hofa/lumen-twig

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

hofa/lumen-twig
===============

Adds the power of Twig to Lumen

v1.0.0(7y ago)137MITPHPPHP &gt;=5.3.0

Since May 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/hofa/lumenTwig)[ Packagist](https://packagist.org/packages/hofa/lumen-twig)[ Docs](https://github.com/hofa/lumenTwig)[ RSS](/packages/hofa-lumen-twig/feed)WikiDiscussions master Synced 2d ago

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

lumenTwig
=========

[](#lumentwig)

lumen support twig template

install
-------

[](#install)

composer require hofa/lumen-twig

bootsrap/app.php
----------------

[](#bootsrapappphp)

$app-&gt;register(LumenTwig\\TwigServiceProvider::class);

uses
----

[](#uses)

view('tests/index.twig', \['a' =&gt; 1\]);
touch resource/view/tests/index.twig

twig global variable
--------------------

[](#twig-global-variable)

{{ reqeust.input('query', 1)}}
{{ app('hash').make('a123456')}}
{{ session...}} {{ url...}} {{ auth...}}

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

2559d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6626fbf0a490964b3f3501e09dc5c64f2755dba2679a9be13aa24d00344525e3?d=identicon)[hofa](/maintainers/hofa)

---

Top Contributors

[![hofa](https://avatars.githubusercontent.com/u/585989?v=4)](https://github.com/hofa "hofa (1 commits)")

---

Tags

twiglumen

### Embed Badge

![Health badge](/badges/hofa-lumen-twig/health.svg)

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

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

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

A Twig extension for Intl

36663.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

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

A Twig extension to allow inlining CSS

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

Twig components for Symfony

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

PHPackages © 2026

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