artkost/yii2-qa The Yii 2 Questions and Answers module inspired by Stack Overflow

yii2-qaqaquestionanswerartkost

Maintainers Wanted!

Questions and Answers for Yii 2

Packagist Version Total Downloads

Extension provides web QA inspired by Stack Overflow.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist artkost/yii2-qa "*"

or add

"artkost/yii2-qa": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply modify your application configuration as follows:

return [
    'qa' => [
        'class' => 'artkost\qa\Module',
        'userNameFormatter' => 'getUserName'
    ],
    ...
];

Install Migrations

php yii migrate/up --migrationPath=@vendor/artkost/yii2-qa/migrations

You can then access QA through the following URL:

http://localhost/path/to/index.php?r=qa

Widgets

You can use available widgets

<?= Tags::widget(['limit' => 20]) ?>
<?= Popular::widget(['limit' => 20, 'views' => 20]) ?>
<?= Favorite::widget(['userID' => Yii::$app->user->id, 'limit' => 20]) ?>

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



0.3.7 is the latest of 11 releases



BSD-3-Clause license
Stats
85 github stars & 29 github forks
0 downloads in the last day
1 downloads in the last 30 days
675 total downloads