ignatenkovnikita/yii2-queuemanager

Yii2 Queue Manager

Installs: 15 167

Dependents: 2

Suggesters: 1

Security: 0

Stars: 18

Watchers: 3

Forks: 6

Open Issues: 0

Type:yii2-extension

v0.1.0 2018-06-22 16:26 UTC

This package is auto-updated.

Last update: 2020-09-18 00:40:43 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

Yii2 Queue Manager

2017-10-21_13-55-13

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist ignatenkovnikita/yii2-queuemanager "*"

or add

"ignatenkovnikita/yii2-queuemanager": "*"

to the require section of your composer.json file.

Usage

Apply migrations

./console/yii migrate --migrationPath=vendor/ignatenkovnikita/yii2-queuemanager/migrations/

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

'modules' => [
        'queuemanager' => [
            'class' => \ignatenkovnikita\queuemanager\QueueManager::class
        ]
],
'components' => [
        'queue' => [
            'class' => \yii\queue\redis\Queue::class,
            'as log' => \yii\queue\LogBehavior::class,
            'as quuemanager' => \ignatenkovnikita\queuemanager\behaviors\QueueManagerBehavior::class
            // Other driver options
        ],
 ]```