PHP code example of klxdr / yii2-hc-widget

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

    

klxdr / yii2-hc-widget example snippets


use klxdr\hc\Comments;

echo Comments::widget([
    'siteid' => WIDGET_ID,
    'identifier' => XID
]);

use klxdr\hc\CommentsCount;

CommentsCount::widget([
    'siteid' => WIDGET_ID,
    'identifier' => XID
]);