PHPackages                             andrew72ru/yii2-bootstrap-slider - 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. andrew72ru/yii2-bootstrap-slider

ActiveYii2-extension

andrew72ru/yii2-bootstrap-slider
================================

Slider to choose a digit range

1.0(10y ago)06.8k↓33.3%1MITPHP

Since Jul 30Pushed 10y agoCompare

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

READMEChangelog (3)Dependencies (2)Versions (6)Used By (0)

Yii2 Bootstrap Slider
=====================

[](#yii2-bootstrap-slider)

Slider to choose a number range. Based on [seiyria/bootstrap-slider](https://github.com/seiyria/bootstrap-slider)

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist andrew72ru/yii2-bootstrap-slider "*"

```

or add

```
"andrew72ru/yii2-bootstrap-slider": "*"

```

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

Usage
-----

[](#usage)

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

For more information, please visit [seiyria/bootstrap-slider](https://github.com/seiyria/bootstrap-slider).

```
$form->field($model, 'property')
    ->widget(\andrew72ru\slider\Slider::className(), [
        'min'           => 100,     // Find min value form you model if you want
        'max'           => 1000,    // Find max value form you model if you want
        'value1'        => 150,     // Optional, value to first slider init. Refer to min if not set
        'value2'        => 350,     // Optional, value to second slider init. Refer to max if not set
        'step'          => 1,       // Optional, refer to 1 if not set,
        'options'       => [
            // Avaliable all seiyria/bootstrap-slider options
        ]
        'clientEvents'  => [
            'slide' => 'function(e) {console.log(e)}',
            'slideStart' => 'function(e) {console.log(e)}',
            'slideStop' => 'function(e) {console.log(e)}',
            'change' => 'function(e) {console.log(e)}',
            'slideEnabled' => 'function(e) {console.log(e)}',
            'slideDisabled' => 'function(e) {console.log(e)}',
        ]
    ])
```

Remember, slider send a `150,200` (comma separated) value to server. Tune you search model to split it or so.

For example

```
// Value – is a string value of form field
if(strpos($value, ',') !== false)
    $where = ['between', 'value', explode(',', $value)[0], explode(',', $value)[1]];
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

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

Every ~3 days

Total

5

Last Release

3926d ago

Major Versions

0.2.3 → 1.02015-08-13

### Community

Maintainers

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

---

Top Contributors

[![andrew72ru](https://avatars.githubusercontent.com/u/567649?v=4)](https://github.com/andrew72ru "andrew72ru (13 commits)")

---

Tags

yii2extensionbootstrapslider

### Embed Badge

![Health badge](/badges/andrew72ru-yii2-bootstrap-slider/health.svg)

```
[![Health](https://phpackages.com/badges/andrew72ru-yii2-bootstrap-slider/health.svg)](https://phpackages.com/packages/andrew72ru-yii2-bootstrap-slider)
```

###  Alternatives

[kartik-v/yii2-slider

An advanced slider input for Yii Framework 2 for both touch enabled and desktop devices based on bootstrap-slider.

30784.4k4](/packages/kartik-v-yii2-slider)[raoul2000/yii2-bootswatch-asset

Use Bootswatch theme in your Yii application with minimum effort

2145.0k4](/packages/raoul2000-yii2-bootswatch-asset)

PHPackages © 2026

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