| Package Data | |
|---|---|
| Maintainer Username: | maqe |
| Maintainer Contact: | hello@maqe.com (MAQE team) |
| Package Create Date: | 2016-12-07 |
| Package Last Update: | 2021-02-09 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-29 03:05:09 |
| Package Statistics | |
|---|---|
| Total Downloads: | 134,770 |
| Monthly Downloads: | 750 |
| Daily Downloads: | 36 |
| Total Stars: | 15 |
| Total Watchers: | 3 |
| Total Forks: | 12 |
| Total Open Issues: | 5 |
Adds support for SQS FIFO Queue to Laravel.
Add package dependency to your project:
composer require maqe/laravel-sqs-fifo
Before Laravel 5.5, add package's service provider to your project's config/app.php:
'providers' => [
Maqe\LaravelSqsFifo\LaravelSqsFifoServiceProvider::class,
],
This package is auto discoverable by Laravel 5.5.
You can then create an SQS FIFO queue connection by adding it to your config/queue.php file:
'connections' => [
...
'my_sqs_fifo' => [
'driver' => 'sqsfifo',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'queue' => env('AWS_SQS_URL'),
'region' => env('AWS_SQS_REGION'),
],
],
Then you may use this FIFO queue as the default by setting in config/queue.php:
'default' => 'my_sqs_fifo',
Or call/listen to the FIFO queue specifically:
Queue::connection('my_sqs_fifo')->pushOn('my_queue_name', new MyQueueJob); // Laravel 5.1
(new MyQueueJob)->onConnection('my_sqs_fifo'); // Laravel 5.2+
php artisan queue:listen connection
php artisan queue:work connection