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

ActiveYii2-extension

raoul2000/yii2-bootswatch4-asset
================================

Use Bootswatch theme compatible with Bootstrap 4, in your Yii2 application with minimum effort

4.3.1(6y ago)1535↓100%1BSD-3-ClausePHP

Since Apr 29Pushed 6y ago1 watchersCompare

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

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

yii2-bootswatch4-asset
======================

[](#yii2-bootswatch4-asset)

Asset bunlde around the [Bootswatch Theme Suite](http://bootswatch.com/) based on **bootstrap 4**.

[![Latest Stable Version](https://camo.githubusercontent.com/7ab03e8764447bdcba83fa8056d86557bc2435b5823c046536c83fa6a4dcb9b6/68747470733a2f2f706f7365722e707567782e6f72672f72616f756c323030302f796969322d626f6f74737761746368342d61737365742f762f737461626c65)](https://packagist.org/packages/raoul2000/yii2-bootswatch4-asset) [![Total Downloads](https://camo.githubusercontent.com/85306101ea9ce0336bce898a82952a59ea3e6cb3573eacb744a9fed92b2c04a2/68747470733a2f2f706f7365722e707567782e6f72672f72616f756c323030302f796969322d626f6f74737761746368342d61737365742f646f776e6c6f616473)](https://packagist.org/packages/raoul2000/yii2-bootswatch4-asset)

If you are using Bootstrap 3, please refer to the dedicated extension [yii2-bootswatch-asset](https://github.com/raoul2000/yii2-bootswatch-asset).

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-bootswatch4-asset "*"

```

or add

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

```

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

Usage
-----

[](#usage)

Note that this asset bundle **does NOT include Bootstrap 4 files**, but only the [Bootswatch](http://bootswatch.com/) CSS files dedicated to *overload* Bootstrap default theme. To use the Bootstrap 4 files with your Yii2 application, check the [yii2-bootstrap4](https://github.com/yiisoft/yii2-bootstrap4) extension.

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\bootswatch4\BootswatchAsset',
    ];
}
?>
```

Then at some point you must select the theme name you want to use. In the example below, the theme [materia](https://bootswatch.com/materia/) is set in the main layout file.

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

raoul2000\bootswatch4\BootswatchAsset::$theme = 'materia';
AppAsset::register($this);
```

About Versioning
----------------

[](#about-versioning)

By convention this extension is using the same version number as the [project thomaspark/bootswatch](https://github.com/thomaspark/bootswatch) it depends on. Consequently, the first version of this extension is 4.3.1.

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 63% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Unknown

Total

1

Last Release

2518d 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 (8 commits)")

---

Tags

bootstrap4bootswatch-themebootswatch4yii2-assetyii2-extensioncssyii2extensionthemeassetsskinbootstrap4stlyebootswatch4

### Embed Badge

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

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

###  Alternatives

[raoul2000/yii2-bootswatch-asset

Use Bootswatch theme in your Yii application with minimum effort

2044.8k3](/packages/raoul2000-yii2-bootswatch-asset)[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M62](/packages/dmstr-yii2-adminlte-asset)

PHPackages © 2026

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