it-yakutia/yii2-poll

Poll for yii2

Installs: 100

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

2.0.0 2023-09-01 07:28 UTC

This package is auto-updated.

Last update: 2024-10-30 01:48:10 UTC


README

Poll server for yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist it-yakutia/yii2-poll "*"

or add

"it-yakutia/yii2-poll": "*"

to the require section of your composer.json file.

Add migration path in your console config file:

'controllerMap' => [
    ...
    'migrate' => [
    ...
        'migrationPath' => [
            ...
            '@vendor/it-yakutia/poll/src/migrations',
        ],
    ],
]

Usage

Once the extension is installed, simply use it in your code by :

<?= Url::toRoute(['/poll/poll/index']); ?>

Add RBAC roles:

poll

Add fixtures:

php yii fixture PollVote --namespace='ityakutia\poll\tests\fixtures'

Add fixtures in docker:

php yii fixture PollVote --namespace='ityakutia\poll\tests\fixtures' --interactive=0