ignatenkovnikita/yii2-queuemanager

Yii2 Queue Manager

Installs: 51 595

Dependents: 2

Suggesters: 0

Security: 0

Stars: 20

Watchers: 3

Forks: 8

Open Issues: 0

Type:yii2-extension

v1.0.0 2020-08-18 00:34 UTC

This package is auto-updated.

Last update: 2024-12-06 14:14:39 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
        ],
 ]```