Download the PHP package lamoda/queue-bundle without Composer

On this page you can find all versions of the php package lamoda/queue-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 queue-bundle

Lamoda Queue Bundle

Build Status Scrutinizer Code Quality Code Coverage Build Status

Symfony bundle for convenient work with queues. Currently it supports RabbitMQ.

Installation

  1. Install bundle

  2. Extend Lamoda\QueueBundle\Entity\QueueEntityMappedSuperclass

  3. Configure bundle parameters

  4. Register bundle

    or add to config/bundles.php

  5. Migrate schema

    1. to create migration for table
      • apply the migration

Setup

Create new exchange

  1. Define new exchange constant

  2. Add new node to old_sound_rabbit_mq.producers with previous defined constant name, example:

Create new queue

  1. Define new queue constant

  2. Register consumer for queue in old_sound_rabbit_mq.consumers with previous defined constant name, example:

  3. Create job class, extend AbstractJob by example:

  4. Create job handler, implement HandlerInterface by example:

  5. Tag handler at service container

  6. Configure delay strategy parameters (optional)

    In this block, you can config special delay behaviors for each queue. For this, you have to register new services that use one of several base strategies (ArithmeticProgressionStrategy, GeometricProgressionStrategy) or yours (for this you have to make Service Class that implements DelayStrategyInterface).

    Each strategy service has to have a tag with name lamoda_queue_strategy and unique key. After this, you can use these keys for matching with queues in lamoda_queue.queues section.

    By default, use GeometricProgressionStrategy with params (their you can customize in lamoda_queue config section):

  7. Add queue name in "codeception.yml" at modules.config.AMQP.queues

  8. Execute ./bin/console queue:init command

Usage

Init exchange and queues

Add job to queue

Run queued job

Requeue failed queues

Advanced usage

You can queue any primitive class, just implement QueueInterface:

How to rerun queues

If you want to rerun queue, throw Lamoda\QueueBundle\Exception\RuntimeException.

If you want mark queue as failed, throw any another kind of exception.

By default delay time is calculated exponentially. You can affect it through configuration.

Events

Lamoda\QueueBundle\Event\QueueAttemptsReachedEvent

When consumer wants to execute reached maximum attempts queue.

Properties:

Development

PHP Coding Standards Fixer

Tests

Unit


All versions of queue-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.0
ext-pdo Version *
ext-json Version *
doctrine/doctrine-bundle Version ^1.9 || ^2.0
doctrine/orm Version ~2.3
jms/serializer-bundle Version ^2.4 || ^3.0
php-amqplib/php-amqplib Version ~3.0
php-amqplib/rabbitmq-bundle Version ~2.9.0
symfony/config Version ^4.1 || ^5.0
symfony/console Version ^4.2 || ^5.0
symfony/dependency-injection Version ^4.2 || ^5.0
symfony/event-dispatcher Version ^4.3 || ^5.0
symfony/framework-bundle Version ^4.3
symfony/monolog-bundle Version ^3.3
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 lamoda/queue-bundle contains the following files

Loading the files please wait ....