PHP code example of ipunkt / laravel-rabbitmq-enqueue
1. Go to this page and download the library: Download ipunkt/laravel-rabbitmq-enqueue 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/ */
ipunkt / laravel-rabbitmq-enqueue example snippets
$this-rabbitmq->publish([
'some' => 'data',
'serializable' => 'as',
'json'
])->onExchange('exchange-name', 'routing-key')
$this-rabbitmq->publish([
'some' => 'data',
'serializable' => 'as',
'json'
])->onQueue('queue-name')