Download the PHP package adtechpotok/enqueue-messenger-adapter-bundle without Composer

On this page you can find all versions of the php package adtechpotok/enqueue-messenger-adapter-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 enqueue-messenger-adapter-bundle

Enqueue's transport for Symfony Messenger component

This Symfony Messenger transport allows you to use Enqueue to send and receive your messages from all the supported brokers.

Usage

  1. Install the transport

  2. Configure the Enqueue bundle as you would normaly do (see Enqueue's Bundle documentation). If you are using the recipes, you should just have to configure the environment variables to configure the default Enqueue transport:

  3. Configure Messenger's transport (that we will name amqp) to use Enqueue's default transport:

  4. Route the messages that have to go through the message queue:

  5. Consume!

Advanced usage

Configure the queue(s) and exchange(s)

In the transport DSN, you can add extra configuration. Here is the reference DSN (note that the values are just for the example):

Send a message on a specific topic

You can send a message on a specific topic using TransportConfiguration envelope item with your message:

Message duplication preventing

This package provide deduplication mechanism based on Redis optimistic locking (there is documentation https://redis.io/topics/transactions "Optimistic locking using check-and-set"). It uses two dependencies which you have to implement by yourself.

  1. Configure UuidItemSetterMiddleware on produce bus. It will store UUID-4 identifier in envelope items.

  2. Implement UniqueIdGetterInterface interface and register it as a service.

That interface will be used every time when LockBasedDeduplicationMiddleware will process a message. The method getUniqueId have to return a unique id each time when it will be called. LockBasedDeduplicationMiddleware will try to lock a message by this id. If it succeeds the message will be processed next otherwise you will get an exception.

Example:

  1. Register redis-locker and deduplication middleware

Where @REDIS_CLIENT is your configured redis client.

  1. Configure LockBasedDeduplicationMiddleware

All versions of enqueue-messenger-adapter-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
adtechpotok/messenger-adapter Version 0.1.21
adtechpotok/symfony-aware Version dev-master
enqueue/amqp-bunny Version ^0.8.31
opentracing/opentracing Version 1.0.0-beta5
predis/predis Version ^1.1
queue-interop/queue-interop Version ^0.6.2
ramsey/uuid Version ^3.8
symfony/console Version ~3.4.6|~4.1
symfony/dependency-injection Version ~3.4.6|~4.1
symfony/serializer-pack Version ^1.0
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 adtechpotok/enqueue-messenger-adapter-bundle contains the following files

Loading the files please wait ....