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

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

dmuratov/yii2-universal-comment
===============================

Universal comment for yii2 framework

0454PHP

Since Jan 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/dmuratov/yii2-universal-comment)[ Packagist](https://packagist.org/packages/dmuratov/yii2-universal-comment)[ RSS](/packages/dmuratov-yii2-universal-comment/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

CommentBehaviour for Yii2
=========================

[](#commentbehaviour-for-yii2)

That library include `Comment` model and `CommentBehaviour`. It is simple and fast way to provide easy adding comments for others models.

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

[](#installation)

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

Either run

```
composer require dmuratov/yii2-universal-comment:~1.0

```

or add

```
"dmuratov/yii2-universal-comment" : "~1.0"
```

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

Usage
-----

[](#usage)

Adding behaviour for model:

```
public function behaviors()
{
    return [
        ...
        'comment' => [
            'class' => \dmuratov\comment\CommentBehaviour::className()
        ]
    ];
}

```

Adding comment for model

```

$model->addComment('Comment text');

```

Getting comments

```

$model->getComments()->all();

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3975626?v=4)[dmuratov](/maintainers/dmuratov)[@dmuratov](https://github.com/dmuratov)

### Embed Badge

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

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

###  Alternatives

[supervisorphp/event

Listen to Supervisor events in PHP

1444.5k](/packages/supervisorphp-event)[rmunate/laravel_helpers

Empower Your Laravel Journey: Unleash the Power of Helpers! Unlock a world of possibilities with our standard creation and seamless utilization of helpers within the Laravel framework. Our solution offers a simple, efficient, and elegant way to execute your application's custom methods from any class or view, making development a breeze. Supercharge your Laravel project and elevate your coding experience with our Helper Library.

552.8k](/packages/rmunate-laravel-helpers)

PHPackages © 2026

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