PHPackages                             ogheo/yii2-comments - 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. ogheo/yii2-comments

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

ogheo/yii2-comments
===================

Comments module for Yii2

1.0.1(8y ago)118269[1 issues](https://github.com/ogheo/yii2-comments/issues)MITPHP

Since Jul 31Pushed 7y ago5 watchersCompare

[ Source](https://github.com/ogheo/yii2-comments)[ Packagist](https://packagist.org/packages/ogheo/yii2-comments)[ Docs](https://bitbucket.org/ogheo/yii2-comments)[ RSS](/packages/ogheo-yii2-comments/feed)WikiDiscussions master Synced 3d ago

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

yii2-comments [![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE) [![Scrutinizer](https://camo.githubusercontent.com/3e3aab626999a78222f786dce41024b8774a58561b917096158a8e7c297060f8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6f6768656f2f796969322d636f6d6d656e74732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ogheo/yii2-comments/)
============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#yii2-comments--)

Comments module for Yii2.

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

[](#installation)

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

try

```
composer require "ogheo/yii2-comments:*"

```

or add

```
"ogheo/yii2-comments": "*"

```

to the require section of your `composer.json` file.

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

[](#configuration)

### Database migrations

[](#database-migrations)

```
php yii migrate/up --migrationPath=@vendor/ogheo/yii2-comments/src/migrations

```

### Module setup

[](#module-setup)

```
'modules' => [
    'comments' => [
        'class' => 'ogheo\comments\Module',
    ]
]

```

All available options can be viewed in Comments module file.

Usage
-----

[](#usage)

Add one of the following examples to the view file.

### Basic example

[](#basic-example)

Model is not mandatory, comments will be associated to the current url.

```
use ogheo\comments\widget\Comments;

echo Comments::widget();

```

### Advanced example

[](#advanced-example)

To change default settings, you can do as follows:

```
use ogheo\comments\widget\Comments;

echo Comments::widget([
    'model' => $model,
    'model_key' => $model_key,
]);

```

All available options can be viewed in Comments widget file.

Enjoy ;)

Demo pictures
-------------

[](#demo-pictures)

[![demo](/docs/images/demo.png)](/docs/images/demo.png)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

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 ~37 days

Total

2

Last Release

3172d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8630290c098996f9def06ef7ddabe2c05555f9ef805f936a5d8f560689b38dc1?d=identicon)[ogheo](/maintainers/ogheo)

---

Top Contributors

[![ogheo](https://avatars.githubusercontent.com/u/6599359?v=4)](https://github.com/ogheo "ogheo (6 commits)")

---

Tags

yii2yii2-commentsyii2-comments-manageryii2-comments-moduleyii2yii2-commentsyii2-comments-moduleyii2-comments-manager

### Embed Badge

![Health badge](/badges/ogheo-yii2-comments/health.svg)

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

###  Alternatives

[asinfotrack/yii2-toolbox

Yii2-Toolbox is a collection of useful helpers, widgets etc. extending the basic functionality of Yii2

1230.5k5](/packages/asinfotrack-yii2-toolbox)

PHPackages © 2026

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