PHPackages                             sergiors/templating-service-provider - 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. sergiors/templating-service-provider

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

sergiors/templating-service-provider
====================================

Template engine implementation using PHP or Twig for Silex

2.0.1(9y ago)142.4k11MITPHPPHP &gt;=5.5

Since Sep 16Pushed 9y ago2 watchersCompare

[ Source](https://github.com/sergiors/templating-service-provider)[ Packagist](https://packagist.org/packages/sergiors/templating-service-provider)[ RSS](/packages/sergiors-templating-service-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (11)Versions (10)Used By (1)

Templating Service Provider
---------------------------

[](#templating-service-provider)

A service to help you with template engine implementation using PHP or Twig.

Install
-------

[](#install)

```
composer require sergiors/templating-service-provider
```

```
use Sergiors\Silex\Provider\TemplatingServiceProvider;

$app->register(new TemplatingServiceProvider(), [
    'templating.paths' => '__DIR__.'/../Resources/views/%name%' // or an array
]);

$app['templating']->render(/.../);
```

If you want to use Twig:

```
use Silex\Provider\TwigServiceProvider;
use Sergiors\Silex\Provider\TemplatingServiceProvider;

$app->register(new TwigServiceProvider(), [
    'twig.path' => __DIR__.'/../Resources/views'
]);
$app->register(new TemplatingServiceProvider());

$app['templating']->render(/.../);
```

Don't forget to install `twig/twig` and `symfony/twig-bridge` to use the Twig.

License
-------

[](#license)

MIT

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

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

Recently: every ~51 days

Total

9

Last Release

3572d ago

Major Versions

1.x-dev → 2.0.02016-05-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/75b67763139f7a8c96302299f5a40a386d565829af3061bb55465c8808d54428?d=identicon)[sergiors](/maintainers/sergiors)

---

Top Contributors

[![sergiors](https://avatars.githubusercontent.com/u/2046276?v=4)](https://github.com/sergiors "sergiors (14 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/sergiors-templating-service-provider/health.svg)

```
[![Health](https://phpackages.com/badges/sergiors-templating-service-provider/health.svg)](https://phpackages.com/packages/sergiors-templating-service-provider)
```

###  Alternatives

[noiselabs/smarty-bundle

This Symfony bundle provides integration for the Smarty3 template engine.

53194.4k1](/packages/noiselabs-smarty-bundle)[mustache/silex-provider

A Mustache service provider for Silex.

1462.4k1](/packages/mustache-silex-provider)[nicolassing/quill-bundle

A Symfony bundle that integrates Quill as a drop-in replacement for textarea Symfony form.

1013.0k](/packages/nicolassing-quill-bundle)

PHPackages © 2026

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