bernard / sqs-driver
Amazon SQS driver for Bernard
dev-master / 0.1.x-dev
2018-02-20 12:40 UTC
Requires
- php: ^5.6 || ^7.0
- aws/aws-sdk-php: ^3.0
- bernard/bernard: dev-master
Requires (Dev)
- phpunit/phpunit: ^5.7 || ^6.0 || ^7.0
This package is auto-updated.
Last update: 2024-11-17 07:12:40 UTC
README
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.