PHPackages                             2amigos/yii2-disqus-widget - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. 2amigos/yii2-disqus-widget

AbandonedArchivedYii2-extension[Utility &amp; Helpers](/categories/utility)

2amigos/yii2-disqus-widget
==========================

DISQUS widget for Yii2.

1.0.1(11y ago)2528.5k↓51.7%51BSD-3-ClausePHP

Since May 4Pushed 11y ago9 watchersCompare

[ Source](https://github.com/2amigos/yii2-disqus-widget)[ Packagist](https://packagist.org/packages/2amigos/yii2-disqus-widget)[ Docs](http://yiiwheels.com/extension/disqus-widget)[ RSS](/packages/2amigos-yii2-disqus-widget/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (5)Used By (1)

DISQUS Widget for Yii2
======================

[](#disqus-widget-for-yii2)

[![Latest Version](https://camo.githubusercontent.com/c1e5ee409cb2c645bc29bce1634f301f0f108fe2ae224b7245d56f49f65a0563/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f32616d69676f732f796969322d6469737175732d7769646765742e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://github.com/2amigos/yii2-disqus-widget/tags)[![Software License](https://camo.githubusercontent.com/b60331a2084501dc07cf6d6964c0da58dd005d89c45cf3b28b4b22b60f5ec00f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4253442d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/67220b02ae0c68d6b95b4c1f7c38b65a6ba3717d479f48cae981db6427678bb5/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f32616d69676f732f796969322d6469737175732d7769646765742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/2amigos/yii2-disqus-widget)[![Coverage Status](https://camo.githubusercontent.com/2f192259d0d642c18dcbf4f656e9e430e2a3f7ffb7b9cc067b0b26316e174709/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f32616d69676f732f796969322d6469737175732d7769646765742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/2amigos/yii2-disqus-widget/code-structure)[![Quality Score](https://camo.githubusercontent.com/398d5d254a856e946465b02690ebbbaf51d8b5a4ffa9f7d5588cb8d78ad945f3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f32616d69676f732f796969322d6469737175732d7769646765742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/2amigos/yii2-disqus-widget)[![Total Downloads](https://camo.githubusercontent.com/13a1223ee7eec81c4ae344d0208cdad80d59fc83a2d913d0a432688aa4fe9008/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f32616d69676f732f796969322d6469737175732d7769646765742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/2amigos/yii2-disqus-widget)

DISQUS widget helps you to render your DISQUS comments thread or DISQUS comments thread count on your Yii2 applications.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require 2amigos/yii2-disqus-widget:~1.0

```

or add

```
"2amigos/yii2-disqus-widget" : "~1.0"
```

to the require section of your application's `composer.json` file.

Usage
-----

[](#usage)

To display DISQUS comments

```
use dosamigos\disqus\Comments;

echo Comments::widget([
    // see http://help.disqus.com/customer/portal/articles/472098-javascript-configuration-variables
    'shortname' => '{yourforumshortname}',
    'identifier' => 'article_identifier'
]);
```

To display DISQUS comments count, first setup the link where you wish to display the comments (visit [DISQUS integration](http://help.disqus.com/customer/portal/articles/565624-tightening-your-disqus-integration))

```
article
```

By default Disqus looks up the count using the comment count links href attribute. However, the count can also be looked up using a Disqus identifier:

```
article
```

Then is just a matter to render the CommentsCount widget:

```
use dosamigos\disqus\CommentsCount;

CommentsCount::widget([
    'shortname' => '{yourforumshortname}',
    'identifier' => 'article_identifier'
]);
```

Further Information
-------------------

[](#further-information)

Please, check the [DISQUS developers](http://help.disqus.com/customer/portal/topics/107054-developers/articles)documentation for further information about its integration and configuration options.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Antonio Ramirez](https://github.com/tonydspaniard)
- [All Contributors](../../contributors)

License
-------

[](#license)

The BSD License (BSD). Please see [License File](LICENSE.md) for more information.

> [![2amigOS!](https://camo.githubusercontent.com/9fd8f1de41dc23003bb2a54034cb6658dde5be97092e195a62d629d0d7fa7f6c/687474703a2f2f7777772e67726176617461722e636f6d2f6176617461722f35353336333339346437323934356666376564333132353536656330343165302e706e67)](http://www.2amigos.us)
> *Web development has never been so fun!*
> [www.2amigos.us](http://www.2amigos.us)

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~106 days

Total

4

Last Release

4124d ago

Major Versions

0.1.1 → 1.0.02015-03-19

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/566016?v=4)[Antonio Ramirez](/maintainers/tonydspaniard)[@tonydspaniard](https://github.com/tonydspaniard)

---

Top Contributors

[![creocoder](https://avatars.githubusercontent.com/u/896494?v=4)](https://github.com/creocoder "creocoder (2 commits)")

---

Tags

yii2extensionwidgetyiiyii 2disqus2amigos

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/2amigos-yii2-disqus-widget/health.svg)

```
[![Health](https://phpackages.com/badges/2amigos-yii2-disqus-widget/health.svg)](https://phpackages.com/packages/2amigos-yii2-disqus-widget)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
