{"repo":"dusterio/laravel-plain-sqs","free":true,"listed":false,"github":"https://github.com/dusterio/laravel-plain-sqs","clone":"git clone https://github.com/dusterio/laravel-plain-sqs.git","description":"Custom SQS connector for Laravel (or Lumen) that supports third-party, plain JSON messages","language":"PHP","stars":134,"topics":["laravel","sqs","aws"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Plain Sqs A custom SQS connector for Laravel (or Lumen) that supports custom format JSON payloads. Out of the box, Laravel expects SQS messages to be generated in specific format - format that includes job handler class and a serialized job. But in certain cases you may want to parse messages from third party applications, custom JSON messages and so on. Dependencies PHP = 5.5 Laravel (or Lumen) = 5.2 Installation via Composer To install simply run: Or add it to composer.json manually: Usage in Laravel 5 Usage in Lumen 5 Configuration Edit config/sqs-plain.php to suit your needs. This config matches SQS queues with handler classes. If queue is not found in 'handlers' array, SQS payload is passed to default handler. Add sqs-plain connection to your config/queue.php, eg: In your .env file, choose sqs-plain as your new default queue driver: Dispatching to SQS If you plan to push plain messages from Laravel or Lumen, you can rely on DispatcherJob: This will push the following JSON object to SQS: 'job' field is not used, actually. It's just kept for compatibility sake. Receiving from SQS If a third-party application is creating custom-format JSON messages, just add a handler in the config file and implement a handler class as follows: Todo 1. Add more unit and integration tests Video tutorials I've just started a educational YouTube channel that will cover top IT trends in software development and DevOps: config.sys License The MIT License (MIT) Copyright (c) 2016 Denis Mysenko Pe","default_branch":null,"files":null,"tree":[],"storefront":"/r/dusterio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dusterio/laravel-plain-sqs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}