PHP code example of adcbguo / think_rabbit_mq
1. Go to this page and download the library: Download adcbguo/think_rabbit_mq 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/ */
adcbguo / think_rabbit_mq example snippets
// 复制配置文件
vendor\adcbguo\think_rabbit_mq\rabbit_mq.php 文件到 config/rabbit_mq.php
// 配置自定义命令 config\console.php 增加一行
'queue:work' => 'queue\command\Work'
php think queue:work --exchange=mall_dev --queue=mall_dev --memory=128 --tries=3