1. Go to this page and download the library: Download nimbly/syndicate 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/ */
nimbly / syndicate example snippets
$queue = new Syndicate\Queue\Sqs(
"https://queue.url",
new SqsClient([
'version' => 'latest',
'region' => 'us-west-2'
])
);
$queue->listen(function(Message $message): void {
/**
*
* Process the message...
*
*/
// Delete the message from Queue.
$message->delete();
});