PHP code example of esangtek / php-bootstrap

1. Go to this page and download the library: Download esangtek/php-bootstrap 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/ */

    

esangtek / php-bootstrap example snippets



$bsCarousel = new Carousel();
$bsCarousel->init('prefix');


$bsCarousel->add('example.jpg', 'title', 'content');


$bsCarousel->setCarouselInterval(2500);


$bsCarousel->showIndicators(false);


$bsCarousel->showIndicators(false);


$bsCarousel->display();


PHPbootstrap\Carousel;

$bsCarousel = new Carousel();
$bsCarousel->init('example')
    ->add('image1.png', 'title_1', 'content_1')
    ->add('image2.png', 'title_2', 'content_2')
    ->add('image3.png', null, 'content_3')
    ->add('image4.png', 'title_4')
    ->add('image5.png')
    ->showIndicators(false)
    ->showControl(false)
    ->setCarouselInterval(2000);
bash
composer