PHP code example of jkofsky / yii2-scroll-top

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

    

jkofsky / yii2-scroll-top example snippets


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

<?=
\jkofsky\scrollTop\ScrollTop::widget([
   'btnColorClass' => 'btn-info',
   'linkText' => 'Top',
   'glyphicon' => 'glyphicon-circle-arrow-up',
   ])

php composer.phar 

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