PHP code example of chenkby / yii2-swiper
1. Go to this page and download the library: Download chenkby/yii2-swiper 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/ */
chenkby / yii2-swiper example snippets
echo \chenkby\swiper\Swiper::widget([
'items'=>[
Html::img('http://p2.wmpic.me/article/2016/03/07/1457340934_IhOzsopM.jpg'),
Html::img('http://p3.wmpic.me/article/2016/03/07/1457340935_xESOHFOa.jpg'),
Html::img('http://p3.wmpic.me/article/2016/03/07/1457340935_VoZtYoSk.jpg')
],
'clientOptions'=>[
'loop'=>true,
]
]);
bash
$ php composer.phar