Download the PHP package alpari/kafka-client without Composer

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

PHP Native Apache Kafka Client

alpari/kafka-client is a PHP library implementation of the Apache Kafka protocol, containing both Producer and Consumer support. It was designed to be as close to PHP as possible, keeping API and config as close to the original ones as possible.

Installation

alpari/kafka-client can be installed with composer. Installation is quite easy, just ask the Composer to download the library with its dependencies by running the command:

This library contains several branches, each branch contains support for specfic version of Apache Kafka, see mapping below:

Producer API

The Producer API allows applications to send streams of data to topics in the Kafka cluster.

Example showing how to use the producer is given below:

Only required option is Config::BOOTSTRAP_SERVERS which should describe list of Kafka servers used to bootstrap connections to Kafka.

For additional options, please see Alpari\Kafka\Producer\Config constants description and producer configuration.

Consumer API

The Consumer API allows applications to read streams of data from topics in the Kafka cluster.

Example showing how to use the consumer is given below.

For detailed description of configuration, please visit consumer configuration.

PHP-specific configuration

This library introduces some specific configuration options in order to work faster with PHP:

For publishing events from web-requests it is recommended to enable persistent connection and configuring path for metadata cache. In this case publishing of event will be as fast as possible.


All versions of kafka-client with dependencies

PHP Build Version
Package Version
Requires php Version ~5.6
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 alpari/kafka-client contains the following files

Loading the files please wait ....