PHP code example of ayrozjlc / yii2-counterup

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

    

ayrozjlc / yii2-counterup example snippets


// ...
use ayrozjlc\counterup\CounterUpAsset;
// ...
CounterUpAsset::register($this);

public $depends = [
    // ...
    '\ayrozjlc\counterup\CounterUpAsset',
];

<span class="counter"> 1000 </ span>
@app/views/layouts/main.php
assets/AppAsset.php