Download the PHP package aplr/kafkaesk without Composer

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

Kafkaesk: A queue driver for Laravel

Kafkaesk adds support for Apache Kafka to Laravel Queues. It builds upon the rdkafka php extension, which you will have to install seperately. Also, you have to install the C/C++ client library librdkafka upfront. Afterwards, you can freely push jobs to your favorite Kafka queue!

Kafkaesk supports PHP 7.2-7.4 and requires Laravel 6-7. If you still need to support Laravel 5 use rapideinternet/laravel-queue-kafka, which Kafkaesk is a fork of.

Packagist Version GitHub Workflow Status PHP from Packagist GitHub license

Installation

To install the latest version of aplr/kafkaesk just require it using composer.

This package is using Laravel's package auto-discovery, so it doesn't require you to manually add the ServiceProvider. If you've opted out of this feature, add the ServiceProvider to the providers array in config/app.php:

Requirements

Make sure you have installed the C/C++ client library librdkafka. If you're running macOS, you can simply use Homebrew to install it.

Additionally you have to install the php extension rdkafka. You can do this either manually or simply by using pecl.

If both installs succeed, you're all set!

Configuration

The default configuration is set in config/kafkaesk.php. Merge the contents of this file with the connections array in your local config/queue.php. You can do this using the command below.

Environment variables

When using the default configuration, you can also use the environment variables described below to configure the queue driver.

Name Default Description
KAFKA_QUEUE default The name of the default queue.
KAFKA_CONSUMER_GROUP_ID laravel The group in which the consumer resides.
KAFKA_BROKERS localhost Kafka broker address.
KAFKA_ERROR_SLEEP 5 Seconds to sleep on communication error.
KAFKA_DEADLOCK_SLEEP 2 Seconds to sleep on deadlocks
KAFKA_SASL_USERNAME SASL username
KAFKA_SASL_PASSWORD SASL password

Usage

Since Kafkaesk is just a driver for Laravel Queues, just read through their extensive documentation.

Limitations

Currently, deferring jobs on the queue using the later function of Laravel Queues is not yet supported by this library. Feel free to add support by creating a PR!

Acknowledgements

This library is a fork of the outdated rapideinternet/laravel-queue-kafka, adding support for Laravel 6-7, fixing tests and fancying everything up a bit.

Licence

Kafkaesk is licenced under The MIT Licence (MIT).


All versions of kafkaesk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.0
ext-rdkafka Version *
illuminate/queue Version ^6.0|^7.0|^8.0
illuminate/console Version ^6.0|^7.0|^8.0
illuminate/support Version ^6.0|^7.0|^8.0
illuminate/database Version ^6.0|^7.0|^8.0
illuminate/contracts Version ^6.0|^7.0|^8.0
graham-campbell/manager Version ^4.5
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 aplr/kafkaesk contains the following files

Loading the files please wait ....