PHPackages                             hiqdev/yii2-thememanager - 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. hiqdev/yii2-thememanager

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

hiqdev/yii2-thememanager
========================

Pluggable themes for Yii2

0.4.1(3y ago)2833.6k8[1 issues](https://github.com/hiqdev/yii2-thememanager/issues)9BSD-3-ClausePHP

Since May 19Pushed 9mo ago8 watchersCompare

[ Source](https://github.com/hiqdev/yii2-thememanager)[ Packagist](https://packagist.org/packages/hiqdev/yii2-thememanager)[ Docs](https://github.com/hiqdev/yii2-thememanager)[ RSS](/packages/hiqdev-yii2-thememanager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (11)Used By (9)

Yii2 Theme Manager
==================

[](#yii2-theme-manager)

**Pluggable themes for Yii2**

[![Latest Stable Version](https://camo.githubusercontent.com/735aa79e9487f72671d753749e761f05e24bb526edcf6f5598e554070a200e82/68747470733a2f2f706f7365722e707567782e6f72672f6869716465762f796969322d7468656d656d616e616765722f762f737461626c65)](https://packagist.org/packages/hiqdev/yii2-thememanager)[![Total Downloads](https://camo.githubusercontent.com/b729091acf9a4583d7c6803820645e941cb08878a00e44e11c3d3ab461369b06/68747470733a2f2f706f7365722e707567782e6f72672f6869716465762f796969322d7468656d656d616e616765722f646f776e6c6f616473)](https://packagist.org/packages/hiqdev/yii2-thememanager)[![Build Status](https://camo.githubusercontent.com/11b6d118f3529dd8b9c9c3e2edfb09705469901b0cba0206a0acc4e53904021a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6869716465762f796969322d7468656d656d616e616765722e737667)](https://travis-ci.org/hiqdev/yii2-thememanager)[![Scrutinizer Code Coverage](https://camo.githubusercontent.com/7f3854b60741f75d927d5aa9b2d2a6873873643676a4880bfbcd338ee5e63acc/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6869716465762f796969322d7468656d656d616e616765722e737667)](https://scrutinizer-ci.com/g/hiqdev/yii2-thememanager/)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8cc39d85bda9201b2b2fe958f73f25db5110cbdde767c3c1486b81540d5264e2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6869716465762f796969322d7468656d656d616e616765722e737667)](https://scrutinizer-ci.com/g/hiqdev/yii2-thememanager/)[![Dependency Status](https://camo.githubusercontent.com/32b67b8bb3b213d6c0255129aa6c2b5ed24938e5c4408e15bdddce1e51f87742/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f6869716465763a796969322d7468656d656d616e616765722f6465762d6d61737465722f62616467652e737667)](https://www.versioneye.com/php/hiqdev:yii2-thememanager/dev-master)

This [Yii2](http://www.yiiframework.com/) plugin provides easy theming for Yii2 projects. And allows to create and use themes as composer packages. So changing a theme on a site becomes as simple as changing a single require line in `composer.json`.

At the moment there are several themes available:

- AdminLte - [yii2-theme-adminlte](https://github.com/hiqdev/yii2-theme-adminlte)
- Agency - [yii2-theme-agency](https://github.com/hiqdev/yii2-theme-agency)
- DataServ - [yii2-theme-dataserv](https://github.com/hiqdev/yii2-theme-dataserv)
- Flat - [yii2-theme-flat](https://github.com/hiqdev/yii2-theme-flat)
- Hyde - [yii2-theme-hyde](https://github.com/hiqdev/yii2-theme-hyde)
- Obaju - [yii2-theme-obaju](https://github.com/hiqdev/yii2-theme-obaju)
- Yii2 original - [yii2-theme-original](https://github.com/hiqdev/yii2-theme-original)
- Sailor - [yii2-theme-sailor](https://github.com/hiqdev/yii2-theme-sailor)
- Twenty Fifteen - [yii2-theme-twentyfifteen](https://github.com/hiqdev/yii2-theme-twentyfifteen)

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

[](#installation)

This package is not intended to be required directly in your project. Instead you should require theme(s) you've chosen and this package will get required as a dependency.

Please see [hiqdev/hisite-template](https://github.com/hiqdev/hisite-template) as example of project using this theming library.

Idea
----

[](#idea)

The main goal of this theming library is to allow creation and use of easy pluggable themes: to change a theme on a site it is enough just to require other theme package in project's `composer.json`.

To achieve this goal several technologies were used:

- [Yii2 theming](http://www.yiiframework.com/doc-2.0/guide-output-theming.html) with `pathMap` auto assembling;
- [Yii2 dependency injection](http://www.yiiframework.com/doc-2.0/guide-concept-di-container.html) for widgets and menus;
- [composer-config-plugin](https://github.com/hiqdev/composer-config-plugin) to create themes as plugins i.e. code combined and distributed together with configuration.

This package provides:

- bootrstrappable `ThemeManager` component that collects and setups in application view proper `Theme` object with proper `pathMap`;
- widgets and menus that can be configured through params and substituted with DI;
- theme `DebugPanel` showing actual `pathMap`.

Configuration
-------------

[](#configuration)

This extension is supposed to be used with [composer-config-plugin](https://github.com/hiqdev/composer-config-plugin).

Also you can use it usual way by copy-pasting config. See [src/config/web.php](src/config/web.php) for configuration example.

Available configuration parameters:

- `themeManager.defaultTheme` - default theme
- `copyright.year` - **CopyrightYears** widget
- `copyright.years`
- `logo.url` - **LogoLink** widget
- `logo.name`
- `logo.options`
- `logo.image`
- `logo.imageOptions`
- `logo.smallImage`
- `logo.smallImageOptions`
- `organization.url` - **OrganizationLink** widget
- `organization.name`
- `organization.options`
- `poweredBy.url` - **PoweredBy** widget
- `poweredBy.name`
- `poweredBy.version`
- `poweredBy.options`
- `socialLinks.links` - **SocialLinks** widget

For more details please see [src/config/params.php](src/config/params.php).

License
-------

[](#license)

This project is released under the terms of the BSD-3-Clause [license](LICENSE). Read more [here](http://choosealicense.com/licenses/bsd-3-clause).

Copyright © 2015-2017, HiQDev ()

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community27

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70.4% 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 ~267 days

Recently: every ~498 days

Total

9

Last Release

1412d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/790fd24da129907d373559f60c6994f664f06e3f518502c03580cc9f3594615e?d=identicon)[hiqdev](/maintainers/hiqdev)

---

Top Contributors

[![hiqsol](https://avatars.githubusercontent.com/u/11820365?v=4)](https://github.com/hiqsol "hiqsol (164 commits)")[![tafid](https://avatars.githubusercontent.com/u/3338188?v=4)](https://github.com/tafid "tafid (43 commits)")[![SilverFire](https://avatars.githubusercontent.com/u/4499203?v=4)](https://github.com/SilverFire "SilverFire (19 commits)")[![strorch](https://avatars.githubusercontent.com/u/23340907?v=4)](https://github.com/strorch "strorch (5 commits)")[![bladeroot](https://avatars.githubusercontent.com/u/10207103?v=4)](https://github.com/bladeroot "bladeroot (1 commits)")[![VadymHrechukha](https://avatars.githubusercontent.com/u/114911409?v=4)](https://github.com/VadymHrechukha "VadymHrechukha (1 commits)")

---

Tags

hacktoberfestthemesyii2manageryii2theme

### Embed Badge

![Health badge](/badges/hiqdev-yii2-thememanager/health.svg)

```
[![Health](https://phpackages.com/badges/hiqdev-yii2-thememanager/health.svg)](https://phpackages.com/packages/hiqdev-yii2-thememanager)
```

PHPackages © 2026

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