Skip to content

yii2mod/yii2-disqus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DISQUS Widget for Yii2

This widget embeds the Disqus comments plugin into your website.

Latest Stable Version Total Downloads License

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yii2mod/yii2-disqus "*"

or add

"yii2mod/yii2-disqus": "*"

to the require section of your composer.json.

Usage

  • Once the extension is installed, simply add widget to your page as follows:
 echo Disqus::widget([
      'options' => ['shortname' => 'DISQUS_SHORTNAME']
  ]);
  • Advanced widget usage
echo Disqus::widget([
    'options' => ['shortname' => 'DISQUS_SHORTNAME', 'identifier'=>'DISQUS_IDENTIFIER', 'url'=>'URL'],
]);