PHPackages                             schmunk42/multi-theme - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. schmunk42/multi-theme

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

schmunk42/multi-theme
=====================

Yii Framework Theme-Manager class, switch themes by regular expressions on controller routes.

0.2.1(11y ago)57.4k1BSD-3-ClausePHPPHP &gt;=5.3.2

Since Apr 4Pushed 11y ago2 watchersCompare

[ Source](https://github.com/schmunk42/multi-theme)[ Packagist](https://packagist.org/packages/schmunk42/multi-theme)[ RSS](/packages/schmunk42-multi-theme/feed)WikiDiscussions master Synced 2mo ago

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

multi-theme
===========

[](#multi-theme)

Features
--------

[](#features)

Yii Framework Theme-Manager class, switch themes by regular expressions on controller routes.

Download
--------

[](#download)

[Get it from github](https://github.com/schmunk42/multi-theme/tags) and place it into your application.

*or*

Via composer: `composer.phar require schmunk42/multi-theme`

Usage
-----

[](#usage)

### Configuration Example

[](#configuration-example)

```
'themeManager' => array(
    'class' => 'vendor.schmunk42.multi-theme.EMultiThemeManager',
    'rules' => array(
        '^p3(.*)'                   => 'backend',  // use backend theme for all routes starting with p3
        '^user/default/index'       => 'frontend', // use frontend theme for several routes of the user module
        '^user/login/(.*)'          => 'frontend',
        '^user/profile/(.*)'        => 'frontend',
        '^user/registration/(.*)'   => 'frontend',
        '^user/recovery/(.*)'       => 'frontend',
        '^user/activation/(.*)'     => 'frontend',
        '^user/(.*)'                => 'backend',  // use backend theme for user module
        '^rights/(.*)'              => 'backend',  // use backend theme for rights module
    )
),

```

> Note: The first matching rule wins.

Resources
---------

[](#resources)

- Fork on [github](https://github.com/schmunk42/multi-theme)
- View at [Yii Extensions](http://www.yiiframework.com/extension/multi-theme/)
- [Phundament](http://phundament.com) Composer Package

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% 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 ~158 days

Total

4

Last Release

4313d ago

### Community

Maintainers

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

---

Top Contributors

[![schmunk42](https://avatars.githubusercontent.com/u/649031?v=4)](https://github.com/schmunk42 "schmunk42 (11 commits)")[![motin](https://avatars.githubusercontent.com/u/793037?v=4)](https://github.com/motin "motin (2 commits)")

---

Tags

managerthemeyiiroutephundament

### Embed Badge

![Health badge](/badges/schmunk42-multi-theme/health.svg)

```
[![Health](https://phpackages.com/badges/schmunk42-multi-theme/health.svg)](https://phpackages.com/packages/schmunk42-multi-theme)
```

###  Alternatives

[hiqdev/yii2-thememanager

Pluggable themes for Yii2

2833.6k9](/packages/hiqdev-yii2-thememanager)

PHPackages © 2026

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