ignatenkovnikita / yii2-queuemanager
Yii2 Queue Manager
Installs: 50 613
Dependents: 2
Suggesters: 0
Security: 0
Stars: 21
Watchers: 3
Forks: 8
Open Issues: 0
Type:yii2-extension
Requires
- 2amigos/yii2-chartjs-widget: ~2.0
- yiisoft/yii2: ~2.0.0
- yiisoft/yii2-jui: ~2.0.0
This package is auto-updated.
Last update: 2024-11-06 13:58:11 UTC
README
Yii2 Queue Manager
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 ], ]```