composer require dmstr/yii2-comments-module
Add this to your configuration
[
'modules' => [
'comment' => [
'class' => dmstr\comments\Module::class
]
],
'controllerMap' => [
'migrate' => [
'migrationPath' => [
'@vendor/dmstr/comments/migrations'
]
]
]
];