PHPackages                             raoul2000/yii2-bootswatch-asset - 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. raoul2000/yii2-bootswatch-asset

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

raoul2000/yii2-bootswatch-asset
===============================

Use Bootswatch theme in your Yii application with minimum effort

1.2.7(9y ago)2145.0k↓31.3%74BSD-3-ClausePHP

Since Oct 6Pushed 7y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (11)Used By (4)

yii2-bootswatch-asset
=====================

[](#yii2-bootswatch-asset)

Asset bunlde around the Bootswatch theme suite. Visit [Bootswatch](http://bootswatch.com/) for more.

[![Latest Stable Version](https://camo.githubusercontent.com/dc6ee999d7c4ae34fc7fc9a20a1fa350d4cc954cccde2a7d1282742666296f6f/68747470733a2f2f706f7365722e707567782e6f72672f72616f756c323030302f796969322d626f6f747377617463682d61737365742f762f737461626c652e737667)](https://packagist.org/packages/raoul2000/yii2-bootswatch-asset) [![Total Downloads](https://camo.githubusercontent.com/2e8302a61668dc3ea9c7d682eebc4422bcd7ea91e2f474a6576a48bc5ada3601/68747470733a2f2f706f7365722e707567782e6f72672f72616f756c323030302f796969322d626f6f747377617463682d61737365742f646f776e6c6f6164732e737667)](https://packagist.org/packages/raoul2000/yii2-bootswatch-asset)

This extension is for Bootstrap prior to version 3. If you're using **Bootstrap 4**, please use the [yii2-bootswatch4-asset](https://github.com/raoul2000/yii2-bootswatch4-asset) extension.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist raoul2000/yii2-bootswatch-asset "*"

```

or add

```
"raoul2000/yii2-bootswatch-asset": "*"

```

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

Usage
-----

[](#usage)

To use a bootswatch theme in your Yii2 application add the BootswatchAsset bundle to your main AppAsset bundle:

```
// ./assets/AppAsset.php

class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
        'css/site.css',
    ];
    public $js = [
    ];
    public $depends = [
        'yii\web\YiiAsset',
    	'raoul2000\bootswatch\BootswatchAsset',
    ];
}
?>
```

Then at some point you must select the theme name you want to use. In the example below, the theme 'cosmo' is set in the main layout.

```
// ./views/layouts/main.php

raoul2000\bootswatch\BootswatchAsset::$theme = 'cosmo';
AppAsset::register($this);
```

License
-------

[](#license)

**yii2-bootswatch-asset** is released under the BSD 3-Clause License. See the bundled `LICENSE.md` for details.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 96.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 ~78 days

Recently: every ~134 days

Total

10

Last Release

3533d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec7e087ebb28d42d781766dce67eb6d8911a11a5e3dd7e793800f506d17f0a00?d=identicon)[raoul2000](/maintainers/raoul2000)

---

Top Contributors

[![raoul2000](https://avatars.githubusercontent.com/u/1474310?v=4)](https://github.com/raoul2000 "raoul2000 (28 commits)")[![PrplHaz4](https://avatars.githubusercontent.com/u/841414?v=4)](https://github.com/PrplHaz4 "PrplHaz4 (1 commits)")

---

Tags

cssyii2extensionthemeassetsbootstrapskinbootswatchstlye

### Embed Badge

![Health badge](/badges/raoul2000-yii2-bootswatch-asset/health.svg)

```
[![Health](https://phpackages.com/badges/raoul2000-yii2-bootswatch-asset/health.svg)](https://phpackages.com/packages/raoul2000-yii2-bootswatch-asset)
```

###  Alternatives

[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M67](/packages/dmstr-yii2-adminlte-asset)[nkovacs/yii2-datetimepicker

Bootstrap datetimepicker widget for Yii 2, based on Eonasdan/bootstrap-datetimepicker.

1062.7k](/packages/nkovacs-yii2-datetimepicker)[luyadev/luya-bootstrap4

Bootstrap4 Assets and Helper classes like ActiveForm for LUYA and Yii2.

1843.9k3](/packages/luyadev-luya-bootstrap4)[ricar2ce/yii2-material-theme

Material Theme for Yii2

175.8k](/packages/ricar2ce-yii2-material-theme)

PHPackages © 2026

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