PHP code example of yii2mod / yii2-disqus
1. Go to this page and download the library: Download yii2mod/yii2-disqus 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/ */
yii2mod / yii2-disqus example snippets
echo \yii2mod\disqus\Disqus::widget([
'options' => ['shortname' => 'DISQUS_SHORTNAME']
]);
echo \yii2mod\disqus\Disqus::widget([
'options' => ['shortname' => 'DISQUS_SHORTNAME', 'identifier'=>'DISQUS_IDENTIFIER', 'url'=>'URL'],
]);
php composer.phar