PHP code example of derrck / yii2-rabbitmq
1. Go to this page and download the library: Download derrck/yii2-rabbitmq library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
derrck / yii2-rabbitmq example snippets
php composer.phar
return [
// [...]
'components'=>[
// [...]
'rabbitmq' => [
'class' => '\derrck\yii2\rabbitmq',
'host' => '127.0.0.1',
'port' => '5672',
'user' => 'guest',
'password' => 'guest',
'vhost' => '/',
],
// [...]
];