2017 © Pedro Peláez
 

library laravel-aws-queue

Wrapper for the laravel sqs queue to accept sns topic messages.

image

level23/laravel-aws-queue

Wrapper for the laravel sqs queue to accept sns topic messages.

  • Tuesday, May 16, 2017
  • by level23
  • Repository
  • 7 Watchers
  • 2 Stars
  • 500 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 9 % Grown

The README.md

Build Status, (*1)

Laravel AWS Queue

This package adds a connection driver for sqs to allow for messages send by AWS SNS(Simple Notification Service) to SQS to be parsed correctly., (*2)

The Subject of an SNS message is used for the job name and the Message as the body/data for the job, (*3)

Installing

Install the latest version with:, (*4)

$ composer require level23/laravel-aws-queue

And then add the following service provider to, (*5)

Usage

Add the following line to your config/app.php, (*6)

Laravel
'providers' => [
    ...
    Level23\AwsQueue\AwsQueueServiceProvider::class
]
Lumen
$app->register(Level23\AwsQueue\AwsQueueServiceProvider::class);

This wil override the existing sqs queue driver delivered by illuminate/queue, (*7)

Batch jobs

To receive batch jobs change the driver to sqs-batch and add the following to the config, (*8)

'sqs' => [
    'driver' => 'sqs-batch', //default is sqs
    'max' => 10,
    'handler' => 'Classname or binding name in ioc'
    ...
]

This method gives you the ability to receive messages in batch and handle them at once! The maximum AWS allows us is 10 messages per request, (*9)


public function handle($data) { // Here you have the sqs jobs available to you $jobs = $this->job->getJobs(); }

Requirements

To make use if this package you have to run PHP 7.0 or higher., (*10)

Contributing

If you want to help us improve this implementation, just contact us. All help is welcome! The only requirement for contributing is that all code is 100% covered by unit tests and that they implement the PSR standards., (*11)

License

See the file LICENSE for more information., (*12)

The Versions

16/05 2017
12/05 2017

dev-feature-add-checks

dev-feature-add-checks

Wrapper for the laravel sqs queue to accept sns topic messages.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Marc van der Meulen

laravel lumen aws queue sns sqs

13/04 2017

dev-feature-delete-correct-jobs

dev-feature-delete-correct-jobs

Wrapper for the laravel sqs queue to accept sns topic messages.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Marc van der Meulen

laravel lumen aws queue sns sqs