/sqs-queue-driver

AWS SQS driver for pmg/queue

Primary LanguagePHPMIT LicenseMIT

AWS SQS driver for pmg/queue

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

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);