Download the PHP package gustavorglima/laravel-json-sqs without Composer
On this page you can find all versions of the php package gustavorglima/laravel-json-sqs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gustavorglima/laravel-json-sqs
More information about gustavorglima/laravel-json-sqs
Files in gustavorglima/laravel-json-sqs
Package laravel-json-sqs
Short Description Laravel 5 SQS connector that uses JSON to transmit messages
License
Homepage https://github.com/gustavorglima/laravel-json-sqs
Informations about the package laravel-json-sqs
Laravel Json SQS
Dependencies
- PHP >= 5.5
- Laravel >= 5.4
Installation
First of all you need to require the package using composer:
Configuration
Now open config/app.php
to add the provider:
Publish config/json-sqs.php
Create failed table:
Create json-sqs
connection on config/queue.php
:
Set queue driver on .env
And configure your credentials (Example):
Creating a Job
To read published messages on SQS Queue we need to create a Job:
You handle method must be like that:
Open config/json-sqs.php
and add:
Publishing a message
To publish a message it's pretty simple, you just need to pass the job name that was specified in config/json-sqs.php
and the data, example:
Start the worker
Obs. In production we recommend to use Supervisor.
All versions of laravel-json-sqs with dependencies
illuminate/support Version 5.*
illuminate/queue Version 5.*
illuminate/bus Version 5.*
aws/aws-sdk-php Version ~3.0