1. Go to this page and download the library: Download sergmoro1/yii2-slide 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/ */
sergmoro1 / yii2-slide example snippets
return [
'common' => [
'slides' => [
// 3 slides
['id' => 1, 'caption' => 'Advert'],
['id' => 2, 'caption' => 'Characteristic feature'],
['id' => 3, 'caption' => 'Key service'],
// may be more
],
// Slide description look like: Head1 # Line1 of Head2; Line2 of Head2 # link/to/content
// In a backend slide/index every part will be converted in the tag mentioned below.
'highlights' => ['h4', 'p', 'small', 'b', 'p', 'small'],
],
];