PHPackages                             gluephp/glue-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. gluephp/glue-twig

ActiveLibrary

gluephp/glue-twig
=================

Use twig templating engine in Glue

0.1.0(10y ago)118MITPHPPHP &gt;=5.5.0

Since May 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/gluephp/glue-twig)[ Packagist](https://packagist.org/packages/gluephp/glue-twig)[ RSS](/packages/gluephp-glue-twig/feed)WikiDiscussions develop Synced 1mo ago

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

Twig for Glue
=============

[](#twig-for-glue)

Use [twig/twig](https://github.com/twigphp/Twig) with [gluephp/glue](https://github.com/gluephp/glue)

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

[](#installation)

Use [Composer](http://getcomposer.org):

```
$ composer require gluephp/glue-twig
```

Configure Twig
--------------

[](#configure-twig)

```
$app = new Glue\App;

$app->config->override([
    'twig' => [
        'path'    => '/absolute/path/to/templates/folder',
        'config'  => [
            // Additional Twig config, read Twigs
            // documentation for more info...
        ]
    ],
]);
```

Register Twig
-------------

[](#register-twig)

```
$app->register(
    new Glue\Twig\ServiceProvider()
);
```

Get the Twig instance
---------------------

[](#get-the-twig-instance)

Once the service provider is registered, you can fetch the Twig instance with:

```
$twig = $app->make('Twig_Environment');
```

or use the alias:

```
$twig = $app->twig;
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

3655d ago

### Community

Maintainers

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

---

Top Contributors

[![magnus-eriksson](https://avatars.githubusercontent.com/u/3640297?v=4)](https://github.com/magnus-eriksson "magnus-eriksson (2 commits)")

### Embed Badge

![Health badge](/badges/gluephp-glue-twig/health.svg)

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

###  Alternatives

[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)

PHPackages © 2026

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