Download the PHP package gendoria/command-queue-rabbitmq-bundle without Composer

On this page you can find all versions of the php package gendoria/command-queue-rabbitmq-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package command-queue-rabbitmq-bundle

Command Queue RabbitMQ Bundle

Build Status Scrutinizer Code Quality Code Coverage Downloads Latest Stable Version

RabbitMQ driver bundle for gendoria/command-queue-bundle.

Bundle created in cooperation with Isobar Poland.

Installation

Step 0: Prerequisites

:warning: Before using this bundle, you should install and configure gendoria/command-queue-bundle and php-amqplib/rabbitmq-bundle.

For RabbitMQ Bundle you are required to configure only the 'connections' section. All required producers and consumers are created automatically by this bundle.

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:

Gendoria Command Queue Bundle and php-amqplib/rabbitmq-bundle bundles should also be enabled and configured.

Step 3: Add bundle configuration

The example bundle configuration looks as one below.

serializer parameter is used to specify serializer driver used by the driver. You should use jms or symfony driver here, where jms is preferred.

Some serializer drivers are provided by Gendoria Command Queue Bundle.

drivers key defines RabbitMQ command queue drivers. They can be then used by Gendoria Command Queue Bundle as pool drivers. For each Command Queue pool using RabbitMQ transport, one driver should be defined.

Driver configuration consists of several fields, describing connection and worker details. One driver entry has following keys:

This bundle appends appropriate consumers and producers to php-amqplib/rabbitmq-bundle, so no additional consumer / producer configuration is needed.

For each defined driver, service gendoria_command_queue_rabbit_mq_driver.driver.driverName will be created, where driverName is the key in drivers configuration. So for above configuration, one service with ID gendoria_command_queue_rabbit_mq_driver.driver.poolname will be present.

Step 4: Add a driver to Command Queue Bundle configuration

For each command queue pool you want to use rabbitmq driver on, you should set it as send_driver.

So for gendoria_command_queue_rabbit_mq_driver.driver.poolname, your configuration should look similar to code below.

Step 5: Setup RabbitMQ fabric

This step is done by php-amqplib/rabbitmq-bundle command.

It is optional, if you start your consumers before starting sending commands to queue.

Usage

To start receiving commands for your pool, you have to start one rabbitmq bundle worker process.

The command to do that is:

Where poolname is the pool name you defined in pools section of configuration.

For the configuration from step 3, it will look like that:

You should use services like supervisord to control running and restarting your workers.


All versions of command-queue-rabbitmq-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
psr/log Version ~1.0
symfony/framework-bundle Version ~2.7|~3.0
symfony/dependency-injection Version ~2.7|~3.0
symfony/console Version ~2.7|~3.0
symfony/yaml Version ~2.7|~3.0
symfony/monolog-bundle Version ~2.4
gendoria/command-queue Version ~0.2.0
gendoria/command-queue-bundle Version ~0.2.0
php-amqplib/rabbitmq-bundle Version ~1.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gendoria/command-queue-rabbitmq-bundle contains the following files

Loading the files please wait ...