Download the PHP package adexos/m2-kafka-connector without Composer

On this page you can find all versions of the php package adexos/m2-kafka-connector. 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 m2-kafka-connector

Adexos Kafka Connector

This module is a bridge of koco/messenger-kafka for Magento 2.

It is built to use Magento 2 native queue system with some adjustments to the settings.

It also handles reading with Avro Schemes.

Disclaimer

Only the reading part is done from now. You can't write to a queue.

Installation

Usage

Declare your configuration

To do so, you can simply include in your app/code/Namespace/Module/etc/adminhtml/system.xml the kafka configuration form :

Please note the group id you set, it will be used to connect the queue runner to the Kafka broker

You can find the configuration here : Stores -> Configuration -> Services -> Kafka

Add the queue system

Communication

app/code/Namespace/Module/etc/communication.xml

The request field will be used as the model of the message you are receiving.

This class must be full typed with PhpDoc because of Magento 2 requirements

Please note that the topic name DO NOT HAVE to be the same as the Kafka queue you are looking for. Since most of Kafka queues are in the same broker but have different names depending on the environment, we cannot define them in .xml as we do for other connection types like db queues

Instead, the real Kafka topic name must be defined in the system you have set earlier.**

Queue consumer

app/code/Namespace/Module/etc/queue_consumer.xml

If connection is kafka.warehouse, the group id defined in the system.xml file but be warehouse. This allow us to map through the core_config_data table automatically


All versions of m2-kafka-connector with dependencies

PHP Build Version
Package Version
Requires ext-rdkafka Version *
php Version ^8.1
flix-tech/avro-serde-php Version ^2.1
koco/messenger-kafka Version ^0.18.0
symfony/serializer Version >=5.4
phpdocumentor/reflection-docblock Version ^5.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 adexos/m2-kafka-connector contains the following files

Loading the files please wait ....