PHP code example of aki / yii2-image-slider

1. Go to this page and download the library: Download aki/yii2-image-slider library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

aki / yii2-image-slider example snippets


<?= \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',
    	]
    ],
]); 

php composer.phar