PHPackages                             phps-cans/universal-module.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. phps-cans/universal-module.twig

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

phps-cans/universal-module.twig
===============================

Cross-framework module for twig.

v1.0.0(9y ago)111MITPHPPHP &gt;=7.0

Since Jan 19Pushed 9y ago2 watchersCompare

[ Source](https://github.com/phps-cans/universal-module.twig)[ Packagist](https://packagist.org/packages/phps-cans/universal-module.twig)[ RSS](/packages/phps-cans-universal-moduletwig/feed)WikiDiscussions 1.0 Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Symfony console universal module
================================

[](#symfony-console-universal-module)

This package integrates [twig/twig](https://github.com/twigphp/Twig) in any [container-interop](https://github.com/container-interop/service-provider) compatible framework/container.

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

[](#installation)

```
composer require phps-cans/universal-module.twig

```

Once installed, you need to register the [`PSCS\Universal\Module\TwigServiceProvider`](src/TwigServiceProvider.php) into your container.

If your container supports Puli integration, you have nothing to do. Otherwise, refer to your framework or container's documentation to learn how to register *service providers*.

Introduction
------------

[](#introduction)

This service provider is meant to create a Symfony\\Component\\Console\\Application.

Provided services
-----------------

[](#provided-services)

This *service provider* provides the following services:

Service nameDescription`ViewsDirectory`The path to your views`\Twig_Loader_Filesystem::class`Twig Filsesystem loader`Twig_Environment::class`Twig environment using Filesystem loaderProject template courtesy of [thecodingmachine/service-provider-template](https://github.com/thecodingmachine/service-provider-template)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Total

2

Last Release

3449d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/988fb049e7b031fc14b8ce38b8f5bc3e40dbd6bfb3b5bc7f7061b68c41ba39f1?d=identicon)[xhuberty](/maintainers/xhuberty)

---

Top Contributors

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

---

Tags

twigservice provider

### Embed Badge

![Health badge](/badges/phps-cans-universal-moduletwig/health.svg)

```
[![Health](https://phpackages.com/badges/phps-cans-universal-moduletwig/health.svg)](https://phpackages.com/packages/phps-cans-universal-moduletwig)
```

###  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)
