PHPackages                             cozumel/yii2-themepicker - 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. cozumel/yii2-themepicker

ActiveYii2-extension[Templating &amp; Views](/categories/templating)

cozumel/yii2-themepicker
========================

This is a simple extension to pick themes. The user chooses a theme from a dropdown box.

181[1 issues](https://github.com/cozumel424/yii2-themepicker/issues)PHP

Since Apr 21Pushed 10y ago2 watchersCompare

[ Source](https://github.com/cozumel424/yii2-themepicker)[ Packagist](https://packagist.org/packages/cozumel/yii2-themepicker)[ RSS](/packages/cozumel-yii2-themepicker/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Front End Theme Selection For Yii2
==================================

[](#front-end-theme-selection-for-yii2)

This is a simple extension to pick themes. The user chooses a theme from a dropdown box and the theme choice is stored in a cookie, the extension could easily be changed to work with a model too.

[![Latest Stable Version](https://camo.githubusercontent.com/311b5710856689fa76ab27f7446ba8b9f6db92302acf4b53f4d4df364edb993a/68747470733a2f2f706f7365722e707567782e6f72672f636f7a756d656c2f796969322d7468656d657069636b65722f762f737461626c65)](https://packagist.org/packages/cozumel/yii2-themepicker)[![Total Downloads](https://camo.githubusercontent.com/f8d5456fca72cdbcfbb9487b15827c47a5a3f285c80b286e1ecda9391fa7f787/68747470733a2f2f706f7365722e707567782e6f72672f636f7a756d656c2f796969322d7468656d657069636b65722f646f776e6c6f616473)](https://packagist.org/packages/cozumel/yii2-themepicker)[![License](https://camo.githubusercontent.com/97c8653ef57dee428bb0cb9def16942c669b37d6c4b06f88274aed59a3848eb8/68747470733a2f2f706f7365722e707567782e6f72672f636f7a756d656c2f796969322d7468656d657069636b65722f6c6963656e7365)](https://packagist.org/packages/cozumel/yii2-themepicker)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist cozumel/yii2-themepicker "*"

```

or add

```
"cozumel/yii2-themepicker": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```

```

You will need to place it in each theme where you want to use it.

The default theme path is set as @app/themes. You may need to change this depending where your themes are.

Line 61 ThemePicker.php

Lines 30-36 Bootstrap.php

Just change @app/themes to @app/web/themes or wherever your themes are.

Translation
-----------

[](#translation)

```
Yii::t('theme_picker', 'Choose a theme')

```

Line 22 ThemePicker.php

Cookie
------

[](#cookie)

The default cookie length is set to 180 days, this can be changed on line 44 ThemePicker.php

Feedback
--------

[](#feedback)

Comments and feedback are welcome, and thanks to the Yii community for a great framework.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5145214?v=4)[Cozumel](/maintainers/Cozumel)[@cozumel](https://github.com/cozumel)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/cozumel-yii2-themepicker/health.svg)

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3851.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.1k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.3k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

282.2k](/packages/webkinder-sproutset)

PHPackages © 2026

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