sat / yii2-comments
Comments for Yii2 Framework.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
Type:yii2-extension
pkg:composer/sat/yii2-comments
Requires
- php: >=5.5
- yiisoft/yii2: ~2.0
This package is auto-updated.
Last update: 2025-12-21 01:04:38 UTC
README
This module provide a comments managing system for Yii2 application.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --dev sat/yii2-comments dev-master
or
composer require --dev sat/yii2-comments dev-master
or add
"sat/yii2-comments": "*"
to the require section of your composer.json.
Configuration
Database Migrations
Before using Comments Widget, we'll also need to prepare the database.
php yii migrate --migrationPath=@vendor/yii2mod/yii2-satcomments/migrations
Module setup
To access the module, you need to add the following code to your application configuration:
'modules' => [
'comment' => [
'class' => 'sat\comments\Module',
// when admin can edit comments on frontend
'enableInlineEdit' => false,
],
]
Widget setup
echo \sat\comments\widgets\MainWidget::widget();