Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Sqs Command Queue Bundle Laravel Package

bbit/sqs-command-queue-bundle

View on GitHub
Deep Wiki
Context7

SqsCommandQueueBundle

Latest Stable Version

SqsCommandQueueBundle is a simple bundle, wich you can use, to queue commands on amazon SQS. This bundle then provides a worker, wich can be run on several servers, and will execute the commands, on one of the several workers.

Step 1: Download BBITSqsCommandQueueBundle using composer

Add BBITSqsCommandQueueBundle in your composer.json:

{
    "require": {
        "bbit/sqs-command-queue-bundle": "dev-master",
    }
}

Now tell composer to download the bundle by running the command:

$ php composer.phar update bbit/sqs-command-queue-bundlee

Composer will install the bundle to your project's vendor/BBIT directory.

Step 2: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new BBIT\SqsCommandQueueBundle\BBITSqsCommandQueueBundle(),
    );
}

Step 3: Configure the bundle

bbit_sqs_command_queue:
    aws_sqs_key: xxx
    aws_sqs_secret: xxxxxxxxx
    aws_sqs_region: eu-central-1
    aws_sqs_queue: https://sqs.eu-central-1.amazonaws.com/xx11xx11/xx-xx

Usage:

Send a command to the queue:

$container->get('sqs_queue')->addCommand('app/console cache:clear');

The worker:

app/console bbit:sqs-command-queue:work 

More BBIT Bundles:

AsyncDispatcherBundle is a simple bundle which provides you with an async event dispatcher, which will store events untill kernel.terminate, and then fire them using the regular event dispatcher. Latest Stable Version

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor