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

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

black-lamp/yii2-slider
======================

Module for adding image slider to site across dashboard

2.0.1(8y ago)3181BSD-3-ClausePHP

Since Oct 27Pushed 8y ago2 watchersCompare

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

READMEChangelog (6)Dependencies (7)Versions (7)Used By (0)

Slider module for Yii2
======================

[](#slider-module-for-yii2)

Module for adding the image slider to site across dashboard and append it to view with widget help. This extension uses [Slick slider](http://kenwheeler.github.io/slick/).

[![Build Status](https://camo.githubusercontent.com/89263b5531a0846048b836734109f8616163292afb0a3def8b8963326deb0275/68747470733a2f2f7472617669732d63692e6f72672f626c61636b2d6c616d702f796969322d736c696465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/black-lamp/yii2-slider)[![Latest Stable Version](https://camo.githubusercontent.com/8723d783d383e3f45f76d9f7153b12f78fa906244e7cc3b0a7918ce8ee7ff9a6/68747470733a2f2f706f7365722e707567782e6f72672f626c61636b2d6c616d702f796969322d736c696465722f762f737461626c65)](https://packagist.org/packages/black-lamp/yii2-slider)[![Latest Unstable Version](https://camo.githubusercontent.com/42eedfb944c3169e209418b447f72c4388c97e2a4f941c2f53cb5764759ac642/68747470733a2f2f706f7365722e707567782e6f72672f626c61636b2d6c616d702f796969322d736c696465722f762f756e737461626c65)](https://packagist.org/packages/black-lamp/yii2-slider)[![License](https://camo.githubusercontent.com/0bb9f71085b4337195dbd0e04cce519c99db16be286c3b75ed0d9d974f07043b/68747470733a2f2f706f7365722e707567782e6f72672f626c61636b2d6c616d702f796969322d736c696465722f6c6963656e7365)](https://packagist.org/packages/black-lamp/yii2-slider)

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

[](#installation)

#### Run command

[](#run-command)

```
composer require black-lamp/yii2-slider

```

or add

```
"black-lamp/yii2-slider": "*"
```

to the require section of your composer.json.

#### Applying migrations

[](#applying-migrations)

```
yii migrate --migrationPath=@vendor/black-lamp/yii2-slider/src/common/migrations

```

#### Add module to application config

[](#add-module-to-application-config)

Module for backend

```
'modules' => [
     // ...
     'slider' => [
         'class' => bl\slider\backend\Module::class
     ]
]
```

#### Module configuration properties

[](#module-configuration-properties)

OptionDescriptionTypeDefaultimagesRootPath to images catalog in web folder (need for uploading images to the server across dashboard)string@frontend/web/img/sliderurlSeparatorSeparator for getting url to image from image pathstringwebimagePrefixPrefix for uploaded images (need for uploading images to the server across dashboard)stringsliderUsing
-----

[](#using)

#### You should use the widget for adding the slider to the page

[](#you-should-use-the-widget-for-adding-the-slider-to-the-page)

```
