PHPackages                             kirschbaum/laravel-sns-subscription-queues - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. kirschbaum/laravel-sns-subscription-queues

ActiveLibrary[Queues &amp; Workers](/categories/queues)

kirschbaum/laravel-sns-subscription-queues
==========================================

A Laravel package that allows the queueing system to deal with the non-laravel payload when subscribed to an AWS SNS topic.

v1.0.0(10y ago)01.4k1PHPPHP &gt;=5.4.0

Since Jun 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/kirschbaum/laravel-sns-subscription-queues)[ Packagist](https://packagist.org/packages/kirschbaum/laravel-sns-subscription-queues)[ RSS](/packages/kirschbaum-laravel-sns-subscription-queues/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/83fd75085c3c10a6a2d8e3bda2887c262710061065c2dd32f6d5cbc1ef9ea3d2/68747470733a2f2f7472617669732d63692e6f72672f6b69727363686261756d2f6c61726176656c2d736e732d737562736372697074696f6e2d7175657565732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kirschbaum/laravel-sns-subscription-queues)

Laravel SNS Subscription Queues
===============================

[](#laravel-sns-subscription-queues)

Under Active Development
------------------------

[](#under-active-development)

This package is actively being developed and should be considered experimental for the time being.

Laravel Version Support
-----------------------

[](#laravel-version-support)

Due to some changes that were made in Laravel version 5.1.20 this package currently only supports version 5.1.20 and higher. It does not support v5.2.0 or higher at this time.

Usage
-----

[](#usage)

This package extends the default `Illuminate\Queue\QueueServiceProvider` to handle queue payloads from SNS Topic subscriptions. It works by checking for a custom handler configuration in the event the Job doesn't meet the expected Laravel payload structure. If a custom queue handler has been configured this package then adds the necessary structure so that the queue system can process the Job.

Installation
------------

[](#installation)

Add the package to your project:

For now update your `composer.json`

```
    "config": {
        "preferred-install": "dist"
    },
    "minimum-stability": "dev"
```

then

```
composer require kirschbaum/laravel-sns-subscription-queues

```

Add the following service provider:

```
// config/app.php

'providers' => [
    ...
    Kirschbaum\LaravelSnsSubscriptionQueues\ServiceProvider::class,
    ...
];

```

Publish the config file using the Artisan command:

```
php artisan vendor:publish --provider="Kirschbaum\LaravelSnsSubscriptionQueues\ServiceProvider"

```

The configuration looks like this:

```
