Download the PHP package aymdev/messenger-azure-bundle without Composer

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

Messenger Azure Service Bus Bundle

A PHP 8.1+ & Symfony 5 / 6 / 7 bundle providing a Symfony Messenger transport for Azure Service Bus using the Azure REST API.

Testing Coding Standards Bundle installation

Installation

You only need to install the bundle using Composer:

As it uses Symfony HttpClient, you will need to install a PSR-18 client. Example:

Configuration

Transport DSN

Your DSN must respect the following format to build the authentication header for a specific namespace:

Where KEY_NAME is your shared access key name, KEY_VALUE is your shared access key and NAMESPACE is your Azure Service Bus namespace. Important note: the keys can contain special characters that could break the URL parsing. Be sure to URL encode them.

Transport options

Detailed list of transport options:

Option name Description Required Default value
entity_path The topic or queue name. Yes
subscription The subcription name to consume messages from a topic. Only for topic consumer transports
token_expiry SAS token validity duration in seconds. 3600
receive_mode Set to peek-lock to perform a non destructive read or to receive-and-delete to perform a destructive-read peek-lock

Example config/packages/messenger.yaml:

Stamps

This transport provides a few stamps:

AzureMessageStamp

The AymDev\MessengerAzureBundle\Messenger\Stamp\AzureMessageStamp stamp is added to sent and received messages and contains:

AzureBrokerPropertiesStamp

The AymDev\MessengerAzureBundle\Messenger\Stamp\AzureBrokerPropertiesStamp stamp is used for the message properties. It is automatically decoded when consuming a message and is encoded when producing a message if added to the envelope.

Serialization

Creating your serializers

There is no serializer provided, but here is the expected array structure of an encoded envelope:

Logging decoding errors

When a serializer throws a Symfony\Component\Messenger\Exception\MessageDecodingFailedException while decoding a message, it will be converted to a AymDev\MessengerAzureBundle\Messenger\Exception\SerializerDecodingException which contains an envelope with an empty message but with the same stamps as a successfully decoded message.

You can then listen to the console.error Symfony event and get the topic/queue name where then decoding failure happened, the original message, etc.


All versions of messenger-azure-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
symfony/messenger Version ^5.4|^6.4|^7.0
symfony/http-kernel Version ^5.4|^6.4|^7.0
symfony/dependency-injection Version ^5.4|^6.4|^7.0
symfony/http-client Version ^5.4|^6.4|^7.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 aymdev/messenger-azure-bundle contains the following files

Loading the files please wait ....