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

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

asinfotrack/yii2-comments
=========================

Yii2-comments is a behavior and a set of widgets to enable generic commenting on Yii2-ActiveRecord-Models

1.0.0(5y ago)7511[1 PRs](https://github.com/asinfotrack/yii2-comments/pulls)MITPHPPHP &gt;=7.1.0

Since Mar 15Pushed 2y ago4 watchersCompare

[ Source](https://github.com/asinfotrack/yii2-comments)[ Packagist](https://packagist.org/packages/asinfotrack/yii2-comments)[ RSS](/packages/asinfotrack-yii2-comments/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (6)Used By (0)

Yii2-comments
=============

[](#yii2-comments)

Yii2-comments is a behavior and a set of widgets to enable commenting on Yii2-ActiveRecord-Models

Advantages
----------

[](#advantages)

This is not the first commenting extension. So why use this one? Those are some of the major advantages:

- this extension works with composite primary keys
- the handling and configuration couldn't be simpler
- awesome widgets to show, list and add comments

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

[](#installation)

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

Either run

```
$ composer require asinfotrack/yii2-comments
```

or add

```
"asinfotrack/yii2-comments": "~0.8.2"

```

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

Migration
---------

[](#migration)

After downloading everything you need to apply the migration creating the audit trail entry table:

```
yii migrate --migrationPath=@vendor/asinfotrack/yii2-comments/migrations

```

To remove the table just do the same migration downwards.

Usage
-----

[](#usage)

#### Behavior

[](#behavior)

Attach the behavior to your model and you're done:

```
public function behaviors()
{
    return [
    	// ...
    	'comments'=>[
    		'class'=>CommentBehavior::class,

    		//TODO: comment this
    	],
    	// ...
    ];
}
```

### Widget

[](#widget)

The widget is also very easy to use. Just provide the model to get the audit trail for:

```

```

Changelog
---------

[](#changelog)

[Learn about the latest improvements.](changelog.md)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 56.5% 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 ~337 days

Total

4

Last Release

1973d ago

Major Versions

0.8.2 → 1.0.02020-12-22

PHP version history (2 changes)0.8.0PHP &gt;=5.4.0

1.0.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/32196c480a4cca0724afc5982064d2f02aa2975f66e5bef343f7f72f6cefaf08?d=identicon)[asinfotrack](/maintainers/asinfotrack)

---

Top Contributors

[![pasci84](https://avatars.githubusercontent.com/u/6659672?v=4)](https://github.com/pasci84 "pasci84 (13 commits)")[![Isitar](https://avatars.githubusercontent.com/u/16210003?v=4)](https://github.com/Isitar "Isitar (10 commits)")

---

Tags

bundlemodelyii2Behaviorwidgetcommentcomments

### Embed Badge

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

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

###  Alternatives

[asinfotrack/yii2-audittrail

Yii2-audittrail is a behavior and a set of widgets to track all modifications performed on a model

1727.0k](/packages/asinfotrack-yii2-audittrail)[sjaakp/yii2-taggable

Manage tags of ActiveRecord in Yii2.

3030.6k](/packages/sjaakp-yii2-taggable)[softark/yii2-dual-listbox

Bootstrap Dual Listbox Widget for Yii 2

20144.4k11](/packages/softark-yii2-dual-listbox)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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