Download the PHP package mrandmrssmith/idempotent-consumer-bundle without Composer

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

Symfony idempotent consumer core bundle

This is core bundle for idempotent consumer. It provides basic functionality to make your consumer idempotent.

Installation

Add this package to your project

Usage

  1. Structure:
    • Persistance - Provide interfaces for persistance
    • Resolver - Interface which should be use to retrive idempotent key from message and register of these resolvers
    • Checker - main service which will handle idempotent logic on message entry you should use this checker before message processing and based on result of check you should decide to process message or not
    • Finalizer - main service which will handle idempotent logic on message exit you should use this finalizer after message processing to mark message as processed or when message failed.
  2. Implement Persistance interface
    • you can implement you own persistence by implement these interfaces and register them in services.
    • there is one ready persistence provided by mrandmrssmith/idempotent-consumer-doctrine-persistence-bundle which provide persistence layer using doctrine
  3. Resolvers:
    • you have to implement key resolvers for your consumers.
    • it works as strategy pattern. You have to register your resolver and add tag idempotent.key_resolver
  4. Checker and Finalizer
    • you have to use these services with your consumer checker on entry of message and finalizer after message processing
    • you can use package for symfony messenger mrandmrssmith/idempotent-symfony-messenger-consumer-bundle
  5. Settings

    • By default failed messages which have status failed are skipped but it may be possible that you may want to try handle again message with status failed so there are 2 options for this
    • first option is in your configuration for this bundle set process_failed_messages to true

    that will change default value (false) of $wantToProcessFailedMessage in DefaultProcessFailedMessageVoter to value which you set here

    • second option is implement own voter - that may be solution when you want to implement own logic which tell if we should handle this message again or not for that you should

    you can replace default voter to your own implementation of ProcessFailedMessageVoter what's provide you full control over processing failed messages.


All versions of idempotent-consumer-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-json Version *
symfony/dependency-injection Version >=3.4
symfony/http-kernel Version >=3.4
symfony/config Version >=3.4
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 mrandmrssmith/idempotent-consumer-bundle contains the following files

Loading the files please wait ....