PHPackages                             isaurssaurav/yii2-comment - 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. isaurssaurav/yii2-comment

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

isaurssaurav/yii2-comment
=========================

light Yii2 comment widget

1.0.0(9y ago)0361[1 issues](https://github.com/isaurssaurav/yii2-comment/issues)MITPHPPHP &gt;=5.4.0

Since Jan 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/isaurssaurav/yii2-comment)[ Packagist](https://packagist.org/packages/isaurssaurav/yii2-comment)[ RSS](/packages/isaurssaurav-yii2-comment/feed)WikiDiscussions master Synced 3w ago

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

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

[](#installation)

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

Either run

```
composer require isaurssaurav/yii2-comment

```

or add

```
"isaurssaurav/yii2-comment": "*"
```

to the require section of your composer.json. Font Awesome is required\*

Configuration
-------------

[](#configuration)

**Database Migrations**

Before using Comments Widget, we'll also need to prepare the database.

```
php yii migrate --migrationPath=@vendor/isaurssaurav/yii2-comment/migration
```

**Module setup**To access the module, you need to add the following code to your application configuration:

```
'modules' => [
    'comment' => [
        'class' => 'isaurssaurav\yii\comment\Module',
    ],
]
```

Usage
-----

[](#usage)

**Basic example:**

```
use isaurssaurav\yii\comment\widgets\CommentWidget;

//echo where you want to show comment
 echo CommentWidget::widget();

```

Properties
----------

[](#properties)

1.limit Default value is 2 No of comment you want to show at first.This number also controls number of comment shown after LOAD MORE is clicked 2.sort ASC or DESC 3.recognize\_schema Defaultly it catches current url, but You can changed it to idk page\_id or something

```
use isaurssaurav\yii\comment\widgets\CommentWidget;

//echo where you want to show comment
 echo CommentWidget::widget([
	limit => 10,
	sort => DESC,
]);

```

[![demo.png](https://camo.githubusercontent.com/bb354e2b041bae456579d687951a74e23479ac329b36e94741ad87c28c5ade12/68747470733a2f2f7332392e706f7374696d672e6f72672f353361396c677071662f64656d6f2e706e67)](https://postimg.org/image/6v38gd937/)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3450d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ec333630392aedc31ff580969314474dfd5b2972a1191482c36152f687d3586?d=identicon)[isaurssaurav](/maintainers/isaurssaurav)

---

Top Contributors

[![isaurssaurav](https://avatars.githubusercontent.com/u/13806915?v=4)](https://github.com/isaurssaurav "isaurssaurav (21 commits)")

---

Tags

commentyii2-commentadvanced-comment

### Embed Badge

![Health badge](/badges/isaurssaurav-yii2-comment/health.svg)

```
[![Health](https://phpackages.com/badges/isaurssaurav-yii2-comment/health.svg)](https://phpackages.com/packages/isaurssaurav-yii2-comment)
```

###  Alternatives

[rmrevin/yii2-comments

Comments module for Yii2

5131.5k](/packages/rmrevin-yii2-comments)

PHPackages © 2026

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