aki/yii2-image-slider Image Slider for yii2

extensionimageslideryii2sliderimagesliderwidgetslideryii2imageslider

Image Slider

Image Slider for yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require aki/yii2-image-slider "*"

or add

"aki/yii2-image-slider": "*"

to the require section of your composer.json file.

Usage

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

<?= \aki\imageslider\ImageSlider::widget([
    'baseUrl' => Yii::getAlias('@web/images'),
    'nextPerv' => false,
    'indicators' => false,
    'height' => '170px',
    'classes' => 'img-rounded',
    'images' => [
        [
            'active' => true,
            'src' => 'image/a.jpg',
            'title' => 'image',

        ],
        [
            'src' => 'image/b.jpg',
            'title' => 'image',
        ]
    ],
]); ?>

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.1 is the latest of 2 releases



LGPL-3.0+ license
Stats
1 github stars & 3 github forks
0 downloads in the last day
0 downloads in the last 30 days
1174 total downloads