PHPackages                             fire-queue/amazon-sqs-job - 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. fire-queue/amazon-sqs-job

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

fire-queue/amazon-sqs-job
=========================

This package is used to add all the required configuration and code to use and process your queues through amazon-sqs easily

0538PHP

Since Sep 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/shujahm/video-indexing)[ Packagist](https://packagist.org/packages/fire-queue/amazon-sqs-job)[ RSS](/packages/fire-queue-amazon-sqs-job/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Amazon SQS Job
======================

[](#laravel-amazon-sqs-job)

This package is used to add all the required configuration and code to use and process your queues through amazon-sqs easily for laravel application deployed on heroku

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

[](#installation)

First, include the package in your dependencies in your **composer.json** file:

```

composer require fire-queue/amazon-sqs-job

```

Run the following command to bring the sample job file from package to the **App/Jobs** folder of your project

```

php artisan vendor:publish

```

Running the above command will print something like this:

[![Screenshot](https://github.com/shujahm/video-indexing/raw/master/documents/Screenshot.png?raw=true)](https://github.com/shujahm/video-indexing/blob/master/documents/Screenshot.png?raw=true)

From the above we select the number 9 that is against

> **FireQueue\\AmazonSqsJob\\AmazonSqsJobServiceProvider**

What this will essentially is migrate copy the file **SampleJob.php** file to your the **App/Jobs** folder of your project. Thus make sure App/Jobs folder is already there for this file to successfully move from package to your project.

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

[](#configuration)

1. Add the following variables to your **.env** file. This are just **sample** key:values , please update them as per your configuration

    ```
    QUEUE_CONNECTION=sqs-fifo
    SQS_KEY=AKIA21212wsxbuXEJ5RN71212342fvcds12433454657UU4CHSN6V1212
    SQS_SECRET=y34380laT23232323212121343430hHQYEsU9VyUF7Qkad8VXqzx-0SQkAdVcR8hK6
    SQS_QUEUE=IndexingVideo.fifo
    SQS_REGION=us-east-2
    SQS_PREFIX=https://sqs.us-east-2.amazonaws.com/

    ```
2. Add the following to your **app/queue.php** under **connections** array:

    ```
    'sqs-fifo' => [
    'driver' => 'sqs-fifo',
    'key' => env('AWS_ACCESS_KEY_ID'),
    'secret' => env('AWS_SECRET_ACCESS_KEY'),
    'prefix' => env('SQS_PREFIX', 'https://sqs.amazonaws.com/your-account-id'),
    'queue' => env('SQS_QUEUE', 'your-queue-name'),
    'suffix' => env('SQS_SUFFIX'),
    'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
    'group' => 'default',
    'deduplicator' => 'unique'
    ]

    ```

Heroku Worker Setup
-------------------

[](#heroku-worker-setup)

You need to include the following worker in your Procfile

```
worker: php artisan queue:restart && php artisan queue:work --tries=3

```

This will restart and put the queue to work whenever your application starts.

Heroku Worker Configuration
---------------------------

[](#heroku-worker-configuration)

To scale up heroku , and use more than 1 worker, you have to use the following command:

```
heroku ps:scale web=1 worker=5

```

In this way 1 Web Dyno and 5 Worker Dynos will be deployed. Also please note if you are using Free or hobby tier on Heroku running this command will give the following error

> Cannot update to more than 1 Free size dynos per process type.

So you have to upgrade to above free and hobby tier.

You can use the following command to see worker logs:

```
heroku logs --tail --ps worker

```

this will print all the logs of the worker as shown below in the screenshot

[![enter image description here](https://github.com/shujahm/video-indexing/raw/master/documents/Screenshot1.png?raw=true)](https://github.com/shujahm/video-indexing/blob/master/documents/Screenshot1.png?raw=true)

To kill or downscale the workers you have to run the following:

```
heroku ps:scale web=1 worker=0

```

in this way all the workers will be shutdown and after that you can scale back to any number of workers by running old command of

```
heroku ps:scale web=1 worker=5

```

Also note , when you change your code in the JOB file, you need to follow the above process again as workers cache the code in each of the JOB files it runs. so its required to kill/destroy them and deploy new workers instead which will take up the new version of the code file.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/364d2faa1f4e2ba0369e1872bbb75ca952218dbddc806a954ced2d0b4e1b3df1?d=identicon)[shujahm](/maintainers/shujahm)

---

Top Contributors

[![shujahm](https://avatars.githubusercontent.com/u/8511885?v=4)](https://github.com/shujahm "shujahm (48 commits)")

### Embed Badge

![Health badge](/badges/fire-queue-amazon-sqs-job/health.svg)

```
[![Health](https://phpackages.com/badges/fire-queue-amazon-sqs-job/health.svg)](https://phpackages.com/packages/fire-queue-amazon-sqs-job)
```

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.3M26](/packages/league-geotools)[amphp/parser

A generator parser to make streaming parsers simple.

14952.8M16](/packages/amphp-parser)[amphp/serialization

Serialization tools for IPC and data storage in PHP.

13451.1M18](/packages/amphp-serialization)[enqueue/enqueue

Message Queue Library

19820.0M56](/packages/enqueue-enqueue)[deliciousbrains/wp-background-processing

WP Background Processing can be used to fire off non-blocking asynchronous requests or as a background processing tool, allowing you to queue tasks.

1.1k409.8k6](/packages/deliciousbrains-wp-background-processing)[react/async

Async utilities and fibers for ReactPHP

2238.8M170](/packages/react-async)

PHPackages © 2026

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