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 2w 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 36% 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

2606d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/585989?v=4)[hofa](/maintainers/hofa)[@hofa](https://github.com/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

[timber/timber

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

5.7k3.6M127](/packages/timber-timber)[twig/intl-extra

A Twig extension for Intl

36567.2M320](/packages/twig-intl-extra)[symfony/ux-twig-component

Twig components for Symfony

22017.2M313](/packages/symfony-ux-twig-component)[symfony/ux-live-component

Live components for Symfony

1636.5M115](/packages/symfony-ux-live-component)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

22919.7M81](/packages/twig-cssinliner-extra)[twig/inky-extra

A Twig extension for the inky email templating engine

16613.2M70](/packages/twig-inky-extra)

PHPackages © 2026

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