PHPackages                             renatomaldonado/laravel-sqs-consume - 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. renatomaldonado/laravel-sqs-consume

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

renatomaldonado/laravel-sqs-consume
===================================

Consumer of sqs message

v1.0.1(2y ago)19.4k↓26.7%MITPHPPHP &gt;=7.1.3

Since May 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Renato27/laravel-sqs-consumer)[ Packagist](https://packagist.org/packages/renatomaldonado/laravel-sqs-consume)[ RSS](/packages/renatomaldonado-laravel-sqs-consume/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (2)Used By (0)

laravel-sqs-consumer
====================

[](#laravel-sqs-consumer)

A custom SQS connector for Laravel (or Lumen) that supports many jobs e any message types based in library .

But each job will be responsible for one queue sqs. All will be execute, if message in some queue exists it will be processed.

Dependencies
------------

[](#dependencies)

- PHP &gt;= 7.1.3
- Laravel (or Lumen) &gt;= 7.0

Installation via Composer
-------------------------

[](#installation-via-composer)

To install simply run:

```
composer require renatomaldonado/laravel-sqs-consume

```

### Usage in Laravel 7

[](#usage-in-laravel-7)

```
// Add in your config/app.php

'providers' => [
    '...',
    'Renatomaldonado\LaravelSqsConsume\Provider\LaravelSQSQueueServiceProvider',
];
```

### Usage in Lumen 7

[](#usage-in-lumen-7)

```
// Add in your bootstrap/app.php
$app->register(Renatomaldonado\LaravelSqsConsume\Provider\LumenSQSQueueServiceProvider::class);
```

Configuration
-------------

[](#configuration)

```
// Generate standard config file (Laravel only)
php artisan vendor:publish --provider="Renatomaldonado\LaravelSqsConsume\Provider\LaravelSQSQueueServiceProvider"

// In Lumen, create it manually (see example below) and register it in bootstrap/app.php
$app->configure('sqs-consumer');
```

Edit config/sqs-consumer.php to suit your needs. This config matches SQS queues with handler classes.

```
return [

    /**
     * Queues array for execute in each job
     */
    'queues' => ['queue-sqs-name-example', 'queue-sqs-name-example-two'],

    'handlers' => [
        'queue-sqs-name-example' => 'your-job',
        'queue-sqs-name-example-two' => 'your-job-two',
    ],

    'default-handler' => 'job-default'
];
```

If queue is not found in 'handlers' array, SQS payload is passed to default handler.

Add sqs-consumer connection to your config/queue.php, eg:

```
        ...
        'sqs-consumer' => [
            'driver' => 'sqs-consumer',
            'key'    => env('AWS_KEY', ''),
            'secret' => env('AWS_SECRET', ''),
            'prefix' => 'https://sqs.ea-northheast-1.amazonaws.com/123456/',
            'queue'  => 'queue-sqs-name-example',
            'region' => 'ea-northheast-1',
        ],
        ...
```

In your .env file, choose sqs-consumer as your new default queue connection:

```
QUEUE_CONNECTION=sqs-consumer

```

### Receiving from SQS

[](#receiving-from-sqs)

If a third-party application is creating custom-format JSON messages or any message, just add a handler in the config file and implement a handler class as follows:

```
use Illuminate\Contracts\Queue\Job as LaravelJob;

class ExempleJob extends Job
{
    protected $data;

    /**
     * @param LaravelJob $job
     * @param $data
     */
    public function handle(LaravelJob $job, $data)
    {
        // This is incoming JSON payload, already decoded to an array
        var_dump($data);

        // Raw JSON payload from SQS, if necessary
        var_dump($job->getRawBody());
    }
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1085d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a8c005ae29c801cf6a93548c4d4abf8a795b74fed3433a772ae7a9b4f048bbe8?d=identicon)[Renato Maldonado](/maintainers/Renato%20Maldonado)

---

Top Contributors

[![Renato27](https://avatars.githubusercontent.com/u/54475563?v=4)](https://github.com/Renato27 "Renato27 (14 commits)")

---

Tags

laravellumenphpqueuephplaravelawslumenqueuesqsconsumer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/renatomaldonado-laravel-sqs-consume/health.svg)

```
[![Health](https://phpackages.com/badges/renatomaldonado-laravel-sqs-consume/health.svg)](https://phpackages.com/packages/renatomaldonado-laravel-sqs-consume)
```

###  Alternatives

[dusterio/laravel-aws-worker

Run Laravel (or Lumen) tasks and queue listeners inside of AWS Elastic Beanstalk workers

3105.7M](/packages/dusterio-laravel-aws-worker)[shiftonelabs/laravel-sqs-fifo-queue

Adds a Laravel queue driver for Amazon SQS FIFO queues.

1556.0M3](/packages/shiftonelabs-laravel-sqs-fifo-queue)[dusterio/laravel-plain-sqs

Custom SQS connector for Laravel that supports custom format JSON

1352.7M1](/packages/dusterio-laravel-plain-sqs)[joblocal/laravel-sqs-sns-subscription-queue

A simple Laravel service provider which adds a new queue connector to handle SNS subscription queues.

48416.3k](/packages/joblocal-laravel-sqs-sns-subscription-queue)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
