Amazon SQS driver for Bernard.
Via Composer
$ composer require bernard/sqs-driver
<?php
use Aws\Sqs\SqsClient;
use Bernard\Driver\Sqs\Driver;
$client = new SqsClient([
'credentials' => [
'key' => 'your_access_key',
'secret' => 'your_secret_key',
],
'region' => 'us-east-1',
'version' => '2012-11-05'
]);
$driver = new Driver($client);
// or with prefetching
$driver = new Driver($client, [], 5);
// or with aliased queue urls
$driver = new Driver($client, [
'queue-name' => 'queue-url',
]);
The MIT License (MIT). Please see License File for more information.