PHP code example of vistart / yii2-widgets

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

    

vistart / yii2-widgets example snippets


<?= \vistart\Widgets\CnzzWidget::widget([
    'visible' => true,
    'cnzzCode' => <the js code of statistical tool>,
    'host' => <the hostname which your website just host>,
]); 

php composer.phar