PHPackages                             raoul2000/yii2-bgswitcher-widget - 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. [Image &amp; Media](/categories/media)
4. /
5. raoul2000/yii2-bgswitcher-widget

ActiveYii2-extension[Image &amp; Media](/categories/media)

raoul2000/yii2-bgswitcher-widget
================================

This extension is a wrapper for the jQuery Background Image Switcher Plugin

1.0.0(11y ago)11071BSD-3-ClauseJavaScript

Since Jun 26Pushed 11y ago2 watchersCompare

[ Source](https://github.com/raoul2000/yii2-bgswitcher-widget)[ Packagist](https://packagist.org/packages/raoul2000/yii2-bgswitcher-widget)[ RSS](/packages/raoul2000-yii2-bgswitcher-widget/feed)WikiDiscussions master Synced 2d ago

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

Background Image Switcher
=========================

[](#background-image-switcher)

This extension is a wrapper for the jQuery Background Image Switcher Plugin

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-bgswitcher-widget "*"

```

or add

```
"raoul2000/yii2-bgswitcher-widget": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, and assuming that our 3 images are stored in `@webroot/images/background`, simply use this code by :

```

	some text here ...

```

Below is an example of a CSS style to apply to the target container :

```
.cover-bg {
	background-repeat: no-repeat;
	background-position: center;
	background-attachment: fixed;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}
```

For complete documentation please refer to the [official BgSwitcher page](http://rewish.github.io/jquery-bgswitcher/). You may also have a look to the [Github](https://github.com/rewish/jquery-bgswitcher) project page.

**If this plugin did not convinced you, have a look to the [Backstretch Plugin](https://github.com/raoul2000/yii2-backstretch-widget)**

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

4339d 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 (5 commits)")

---

Tags

pluginimagejqueryyii2extensionbackground

### Embed Badge

![Health badge](/badges/raoul2000-yii2-bgswitcher-widget/health.svg)

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

###  Alternatives

[yurkinx/yii2-image

Yii2 extension for image manipulating using Kohana Image Library.

66412.9k9](/packages/yurkinx-yii2-image)[raoul2000/yii2-jcrop-widget

This extension is a wrapper for the jQuery Image Cropping Plugin (jcrop)

10248.3k2](/packages/raoul2000-yii2-jcrop-widget)[noam148/yii2-image-resize

A Yii2 component for resizing images (on the fly)

1144.6k7](/packages/noam148-yii2-image-resize)[maxmirazh33/yii2-uploadable-cropable-image

Yii2 extension for upload and crop images

1020.8k](/packages/maxmirazh33-yii2-uploadable-cropable-image)

PHPackages © 2026

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