PHP code example of bluezed / yii2-scroll-top

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

    

bluezed / yii2-scroll-top example snippets


<?= \bluezed\scrollTop\ScrollTop::widget() 

<?= \bluezed\scrollTop\ScrollTop::widget([
      'i_class' => 'glyphicon glyphicon-menu-up bluezed-scroll-top-circle my_custom_class', 
      'a_class' => 'bluezed-scroll-top my_other_custom_class') 

php composer.phar 

<Project-Folder>/views/layouts/main.php