Skip to content

Latest commit

 

History

History

Sqs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Amazon SQS driver

Latest Version

Amazon SQS driver for Bernard.

Install

Via Composer

composer require bernard/sqs-driver

Usage

<?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',
]);

License

The project is licensed under the MIT License.