PHP code example of shizhice / laravel-rabbitmq
1. Go to this page and download the library: Download shizhice/laravel-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/ */
shizhice / laravel-rabbitmq example snippets
shell
php artisan rabbitmq:test --mode=simple --num=3 --queue=simple_queue_1
php artisan rabbitmq:consume rabbitmq-simple --queue=simple_queue_1 --timeout=0
shell
php artisan rabbitmq:test --mode=worker --num=3 --queue=worker_queue_1
php artisan rabbitmq:consume rabbitmq-worker --queue=worker_queue_1 --timeout=0