flyeralarmdigital / rabbitwhisper
Provides RabbitMQ Authority Level Communications with "You this is Me" responses
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:metapackage
Requires
- php: >=7.0
- bschmitt/laravel-amqp: 2.*
- illuminate/support: >=v5.5.28
- php-amqplib/php-amqplib: 2.*
This package is not auto-updated.
Last update: 2025-03-30 08:46:00 UTC
README
##FlyerAlarm Digital's RabbitWhisper
Environment:
- APPID
- FIRE_SEQUENCE
####Sending a Message:
$commo = new SendController( $receiver , $message , $type = 'SEND' );
$commo->sendMessage();
####Receiving a message:
public function handle()
{
$appid = trim(env('APPID'));
\Amqp::consume($appid, function ($message, $resolver) {
$thisMessage = json_decode($message->body, true);
$resolver->acknowledge($message);
$ack = new AckController($thisMessage);
$ack->sendMessage();
$processMe = new WhisperProcessController($thisMessage);
$processMe->processMessage();
}, [
'exchange' => 'amq.direct',
'exchange_type' => 'direct',
'queue_force_declare' => true,
'queue_exclusive' => false,
'queue_durable' => true,
'persistent' => true// required if you want to listen forever
]);
}