Download the PHP package webtoucher/yii2-amqp without Composer
On this page you can find all versions of the php package webtoucher/yii2-amqp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webtoucher/yii2-amqp
More information about webtoucher/yii2-amqp
Files in webtoucher/yii2-amqp
Package yii2-amqp
Short Description Yii 2 extension wrapper to communicate with RabbitMQ server via AMQP. Based on videlalvaro/php-amqplib.
License BSD-3-Clause
Homepage https://github.com/webtoucher/yii2-amqp
Informations about the package yii2-amqp
yii2-amqp
AMQP extension wrapper to communicate with RabbitMQ server. Based on php-amqplib/php-amqplib.
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the section of your composer.json
file.
Add the following in your console config:
Add messages interpreter class @app/components/RabbitInterpreter
with your handlers for different routing keys:
Usage
Just run command
to listen topics with any routing keys on default exchange or
to listen topics with one routing key.
Run command
to listen direct messages on selected exchange.
Also you can create controllers for your needs. Just use for your web controllers class
webtoucher\amqp\controllers\AmqpConsoleController
instead of yii\web\Controller
and for your console controllers
class webtoucher\amqp\controllers\AmqpConsoleController
instead of yii\console\Controller
. AMQP connection will be
available with property connection
. AMQP channel will be available with property channel
.
All versions of yii2-amqp with dependencies
videlalvaro/php-amqplib Version 2.4.0
webtoucher/yii2-commands Version *