bernard/sqs-driver

Amazon SQS driver for Bernard

dev-master / 0.1.x-dev 2018-02-20 12:40 UTC

This package is auto-updated.

Last update: 2020-02-16 20:23:09 UTC


README

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 MIT License (MIT). Please see License File for more information.