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

ActiveYii2-extension

tomaivanovtomov/yii2-slider
===========================

Carousel 2.3.3

1.1.3(8y ago)131MITHTMLPHP &gt;=5.4.0

Since Apr 10Pushed 8y agoCompare

[ Source](https://github.com/TomaIvanovTomov/yii2-slider)[ Packagist](https://packagist.org/packages/tomaivanovtomov/yii2-slider)[ RSS](/packages/tomaivanovtomov-yii2-slider/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (15)Used By (0)

STILL IN DEVELOPMENT!!!!
========================

[](#still-in-development)

yii2-slider
===========

[](#yii2-slider)

Yii2 slider is an extension with Owl Carousel 2.3.3 slider in it.
The slider has multilingual behaviour for title and description on each slide.

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

[](#installation)

```
composer require tomaivanovtomov/yii2-revolution "^1.1.3"
```

Configuration
-------------

[](#configuration)

Add the Module class to `config.php`: ```
'modules' => [
    ....
    'user' => [
        'class' => 'tomaivanovtomov\slider\Module',
    ],
    ....
],
```

Add migrations
--------------

[](#add-migrations)

Create the two tables - `slide` and `slideLang` ```
php yii migrate/up --migrationPath=@vendor/tomaivanovtomov/yii2-slider/migrations
```

Register assets
---------------

[](#register-assets)

Register revolution assets on top of your `layout\\main.php` ```
\tomaivanovtomov\revolution\Assets::register($this);
```

Image path is set to `www.example.com/frontend/web` .

Usage
-----

[](#usage)

Call the widget and set the preferable options.
`height` - height of the slider.
`slides` - Images like an array of objects.

```
    public static function getSliderImages()
    {
        return \tomaivanovtomov\slider\models\Slide::find()
            ->joinWith('translation')
            ->select(['slide.id', 'slideLang.title', 'slide.filename'])
            ->where('slideLang.language=:lang', [':lang' => Yii::$app->language])
            ->all();
    }
```

```
    echo \tomaivanovtomov\slider\widgets\Slider::widget([
        'slides' => \tomaivanovtomov\slider\models\Slide::getSliderImages(),
        'height' => 400,
        'options' => [
            'items' => 1
        ]
    ]);
```

All slider options can be seen at

```
https://owlcarousel2.github.io/OwlCarousel2/docs/api-options.html
```

Multilingual part
-----------------

[](#multilingual-part)

Copy these line in `params.php`: ```
'language-information' => [
    'BG' => [
        'title' => 'Български',
        'extension' => 'bg',
    ],
    'EN' => [
        'title' => 'English',
        'extension' => 'en',
    ],
],
'languageDefault' => 'bg'
```

This portion of code is linked with the multilingual model functionality. You can override the model and adapt it to your needs.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

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 ~0 days

Total

14

Last Release

2949d ago

### Community

Maintainers

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

---

Top Contributors

[![TomaIvanovTomov](https://avatars.githubusercontent.com/u/25176854?v=4)](https://github.com/TomaIvanovTomov "TomaIvanovTomov (7 commits)")

### Embed Badge

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

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

###  Alternatives

[simialbi/yii2-kanban

Kanban board module for yii2

111.1k1](/packages/simialbi-yii2-kanban)

PHPackages © 2026

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