shinomontaz / yii2-rabbit
yii2 rabbit extension
Package info
github.com/shinomontaz/yii2-rabbit
Type:yii2-extension
pkg:composer/shinomontaz/yii2-rabbit
dev-master
2017-10-31 22:41 UTC
Requires (Dev)
- phpunit/phpunit: 6.*
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2026-03-22 21:17:39 UTC
README
confic example:
'components' => [ ... 'rabbit' => [ 'class' => 'shinomontaz\rabbit\Rabbit', 'host' => '<host>', 'port' => '<port>', 'user' => '<user>', 'password' => '<pass>', 'vhost' => '<vhost>', 'layout' => [ '<exchangeName1>' => [ 'type' => '<direct>', 'durable' => <durable>, 'queues' => [ '<queueName1>' => [ 'durable' => <durable>, 'type' => '<direct>', 'worker' => path\to\worker::class, ], ], ] ], ], ... ],
\Yii::$app->rabbit->schedule( $message, '<exchangeName>', 'routingKey');
php yii consoleController/process <queueName>