spekkionu/sqs-queue-driver

AWS SQS driver for pmg/queue

v3.0.0 2018-06-11 19:45 UTC

This package is auto-updated.

Last update: 2024-06-12 13:05:09 UTC


README

==============================

Latest Stable Version Total Downloads Build Status SensioLabsInsight Scrutinizer Code Quality Code Coverage

<?php
use Aws\Sqs\SqsClient;
use PMG\Queue\Serializer\NativeSerializer;
Spekkionu\PMG\Queue\Sqs\Driver\SqsDriver;

$sqsClient = new SqsClient([
    'credentials' => [
        'key' => 'KEY',
        'secret' => 'SECRECT'
    ],
    'region' => 'us-east-1',
    'retries' => 3,
    'version' => '2012-11-05'
]);

$serializer = new NativeSerializer();
$driver = new SqsDriver($sqsClient, $serializer);