PHP code example of kfzteile24 / queue-bundle
1. Go to this page and download the library: Download kfzteile24/queue-bundle 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/ */
kfzteile24 / queue-bundle example snippets
/** @var \Kfz24\QueueBundle\Client\Aws\SnsClient $client */
$client = $container->get('kfz24.queue.client.notify');
$client->send([
'type' => 'notification',
'data' => [1, 2, 3]
]);
$snsClient = new \Aws\Sns\SnsClient([…]);
$sqsClient = new \Aws\Sqs\SqsClient([…]);
$result = $snsClient->publish([
'Message' => 'My Message'
]);
$result = $sqsClient->sendMessage([
'MessageBody' => 'My Message'
]);