kllakk/yii2-quizzes

Quizzes module for the Yii2 framework

Installs: 217

Dependents: 0

Suggesters: 0

Security: 0

Type:yii2-extension

1.0.6 2021-02-05 10:11 UTC

This package is auto-updated.

Last update: 2024-05-05 17:23:44 UTC


README

Quizzes module for the Yii2 framework

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist kllakk/yii2-quizzes "*"

or add

"kllakk/yii2-quizzes": "*"

to the require section of your composer.json file.

Usage

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

return [
    'modules' => [
        'quizzes' => [
            'class' => 'kllakk\quizzes\Module',
        ],
    ],
];

After you downloaded and configured Yii2-quizzess, the last thing you need to do is updating your database schema by applying the migration:

$ php yii migrate/up --migrationPath=@kllakk/quizzes/migrations

You can then access Quizzes editor through the following URL:

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

Also, you need to inject quizzes templates into the main layout on your site

<?= \kllakk\quizzes\widgets\QuizzesInject::widget(); ?>