Download the PHP package aligent/async-events without Composer

On this page you can find all versions of the php package aligent/async-events. 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 async-events

Magento Asynchronous Events

Integration Test REST

A framework for reliably handling asynchronous events with Magento.

Support

Async Events Magento 2.3.x >= Magento 2.4.0 <= Magento 2.4.3 >= Magento 2.4.4
2.x :white_check_mark: :white_check_mark: :x:
3.x :x: :x: :white_check_mark:

Installation

Usage

Define an asynchronous event

Create a new async_events.xml under a module's etc/ directory.

Create Subscription

HTTP Subscription

Amazon EventBridge Subscription

Requires the EventBridge Notifier

Dispatch an asynchronous event

Ensure the following consumers are running

Advanced Usage

Refer to the Wiki

Features

Trace

All events are logged at the individual subscription level with a UUID.

All information from the first delivery attempt to the latest attempt is presented as a trace table. The event payload is also available to view for investigation purposes.

Retries

Events are automatically retried with exponential back off. The default retry limit is 5. The maximum backoff is 60 seconds.

The exponential backoff is calculated as min(60, pow($deathCount, 2));

Attempt Backoff
1 1 second
2 4 seconds
3 9 seconds
4 16 seconds
5 25 seconds

To change the default retry limit visit Admin > Stores > Settings > Configuration > Advanced > System > Async Events and update Maximum Deaths.

Replays

An event can be replayed independent of its status. This is useful to debug or replay an event when all retries are exhausted.

Replays start a new chain of delivery attempts and will respect the same retry mechanism if they fail again.

Lucene Query Syntax

All events are indexed in Elasticsearch by default. This allows you to search through events including the event payload!

The module supports Lucene Query Syntax to query event data like attributes.

The following attributes are available across all asynchronous events.

The following attributes differ between asynchronous event types.

Examples

Assuming you have the following events configured

You can query all customer events by using a wildcard like event_name: customer.* which matches the following events

You can query all created events like *.created which matches the following events

You can further narrow down using the other available attributes such as status or uuid.

The following query returns all customer events which have failed. customer.* AND success: false

You can combine complex lucene queries to fetch event history and then export them via the admin grid as a csv if you wish.

Searching inside event payloads

Searching an event payload depends on what event you are searching on.

For the following example event payload, four properties are indexed as attributes. Therefore, you can query on data.customer_email, data.customer_firstname, data.customer_lastname and data.increment_id. Properties inside array at any level are not searchable.

Search all events where the customer email is [email protected]

data.data.customer_email: [email protected]

Search all events with the order increment id starting with CK and status success

data.data.increment_id: CK* AND success: true

To turn off asynchronous event indexing visit Admin > Stores > Settings > Configuration > Advanced > System > Async Events and disable Enable Asynchronous Events Indexing.


All versions of async-events with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
magento/framework Version *
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 aligent/async-events contains the following files

Loading the files please wait ....