PHP code example of bastardijke / yii2-reeljs

1. Go to this page and download the library: Download bastardijke/yii2-reeljs 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/ */

    

bastardijke / yii2-reeljs example snippets


use bastardijke\reeljs\ReelJs;

$imageList = [
	'images/1.jpg',
	'images/2.jpg',
	'images/3.jpg',
	'images/4.jpg',
];

<?= ReelJs::widget([
    'options' => [
        'src' => $imageList[0], // Required. Source for first image.
    ],
    'clientOptions' => [
        'images' => implode( ',' , $imageList ),
        'speed' => 0.3,
        'shy' => "true",
    ], 
]);