spanjeta / yii2-comments
Comments Widget adds comment box for any view
Installs: 1 355
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 7
Forks: 4
Open Issues: 1
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-01-18 18:09:11 UTC
README
Comments Widget
Comments Widget adds comment box for any view
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist spanjeta/yii2-comments "*"
or add
"spanjeta/yii2-comments": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, use mitration to install table
yii migrate/up --migrationPath=@spanjeta/comments/migrations
simply use it in your code by :
<?= \spanjeta\comments\CommentsWidget::widget(['model'=>$model]); ?>```