PHPackages                             sgomez/simplesamlphp-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. sgomez/simplesamlphp-module-twig

ActiveSimplesamlphp-module[Templating &amp; Views](/categories/templating)

sgomez/simplesamlphp-module-twig
================================

A SimpleSAMLphp module adding support for the Twig template library.

v1.0.2(10y ago)01171MITPHPPHP &gt;=5.5.9

Since Mar 26Pushed 10y agoCompare

[ Source](https://github.com/sgomez/simplesamlphp-module-twig)[ Packagist](https://packagist.org/packages/sgomez/simplesamlphp-module-twig)[ RSS](/packages/sgomez-simplesamlphp-module-twig/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (4)Used By (1)

\#SimpleSAMLphp Composer Twig module

This package add support for the twig template library through a SimpleSAMLphp module installable through [Composer](https://getcomposer.org/). Installation can be as easy as executing:

```
composer.phar require sgomez/simplesamlphp-module-twig ~1.0

```

\##Using templates

This module search in all active modules this directory structure: `modulename/resources/templates/` and create a namespace for each module that has one.

Render a template is as easy as this:

```
$engine = \SimpleSAML\Modules\Twig\TwigEngine::getInstance();
echo $engine->render('@modulename/template.html.twig');
```

\##Using translations

This module uses the [symfony/translation](https://symfony.com/doc/current/components/translation/index.html) library to search translations files in yml format on the next directory: `modulename/resources/translations/`.

The filename must have the next format: *modulename.locale.yml*

\##Twig and translations

This bundle uses the Symfony Twig Extension on [twig-bridge](https://github.com/symfony/twig-bridge) library. So basically you can use [the same filters and blocks than Symfony](http://symfony.com/doc/current/book/translation.html).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

3696d ago

### Community

Maintainers

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

---

Top Contributors

[![sgomez](https://avatars.githubusercontent.com/u/580701?v=4)](https://github.com/sgomez "sgomez (3 commits)")

---

Tags

twigsimplesamlphpsimplesaml

### Embed Badge

![Health badge](/badges/sgomez-simplesamlphp-module-twig/health.svg)

```
[![Health](https://phpackages.com/badges/sgomez-simplesamlphp-module-twig/health.svg)](https://phpackages.com/packages/sgomez-simplesamlphp-module-twig)
```

###  Alternatives

[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M192](/packages/simplesamlphp-simplesamlphp)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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