2017 © Pedro Peláez
 

symfony-bundle sqs-command-queue-bundle

symfony BBITSqsCommandQueueBundle

image

bbit/sqs-command-queue-bundle

symfony BBITSqsCommandQueueBundle

  • Monday, January 25, 2016
  • by whitewhidow
  • Repository
  • 1 Watchers
  • 4 Stars
  • 1,367 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 2 Versions
  • 20 % Grown

The README.md

SqsCommandQueueBundle

Latest Stable Version, (*1)

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., (*2)

Step 1: Download BBITSqsCommandQueueBundle using composer

Add BBITSqsCommandQueueBundle in your composer.json:, (*3)

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

Now tell composer to download the bundle by running the command:, (*4)

``` bash $ php composer.phar update bbit/sqs-command-queue-bundlee, (*5)


Composer will install the bundle to your project's `vendor/BBIT` directory. ### Step 2: Enable the bundle Enable the bundle in the kernel: ``` php <?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:, (*6)

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

The worker:, (*7)

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, (*8)

The Versions

25/01 2016

dev-master

9999999-dev

symfony BBITSqsCommandQueueBundle

  Sources   Download

MIT

The Requires

 

The Development Requires

21/10 2015

v1.0

1.0.0.0

symfony BBITSqsCommandQueueBundle

  Sources   Download

MIT

The Requires

 

The Development Requires