PHPackages                             roadster31/template-switcher-module - 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. roadster31/template-switcher-module

ActiveThelia-module

roadster31/template-switcher-module
===================================

2.0.3(7mo ago)0131↓100%LGPL-3.0+PHP

Since Jul 4Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/roadster31/TemplateSwitcher)[ Packagist](https://packagist.org/packages/roadster31/template-switcher-module)[ RSS](/packages/roadster31-template-switcher-module/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (6)Used By (0)

Template Switcher
=================

[](#template-switcher)

Ce module permet de changer un template front à la volée, en utilisant l'URL `/ts/`, par exemple [http://domain.tld/ts/my\_super\_template](http://domain.tld/ts/my_super_template)

`` doit être le nom d'un sous-répertoire de `templates/frontOffice`.

C'est tout.

D'un loint de vue technique, le module définit un template Helper qui va chercher le template actif en session plutôt qu'en base de données.

Le module propose un évènement TemplateSwitcherEvent, à dispatcher avec TemplateSwitcherEvent::SWITCH\_TEMPLATE\_EVENT. Il permet de changer n'importe quel template, pas seulement le front. Exemple :

```
$event = new TemplateSwitcherEvent('nom-du-template')
$event->setTemplateType(TemplateDefinition::BACK_OFFICE)
$this->getDispatcher()->dispatch(
    TemplateSwitcherEvent::SWITCH_TEMPLATE_EVENT,
    new TemplateSwitcherEvent('nom-du-template')
);

```

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance67

Regular maintenance activity

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Total

4

Last Release

226d ago

Major Versions

0.5.1 → 2.0.02025-06-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a46ed88ee1c801d1002d3e49bbddf2f7ad82265e8f3de6f2894793190163fd6?d=identicon)[cqfdev](/maintainers/cqfdev)

---

Top Contributors

[![roadster31](https://avatars.githubusercontent.com/u/2197734?v=4)](https://github.com/roadster31 "roadster31 (5 commits)")

### Embed Badge

![Health badge](/badges/roadster31-template-switcher-module/health.svg)

```
[![Health](https://phpackages.com/badges/roadster31-template-switcher-module/health.svg)](https://phpackages.com/packages/roadster31-template-switcher-module)
```

PHPackages © 2026

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