Download the PHP package kafka-bus/metadata without Composer

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

Kafka Bus Metadata

Inspect Apache Kafka topics, partitions, watermarks and committed consumer group offsets from PHP. Update offsets for selected topics and partitions with bounds validation.

Installation

Requires PHP 8.2+ and ext-rdkafka. Composer installs Kafka Bus Core.

Quick start: inspect a topic

With Kafka at localhost:9092 and an existing orders.events topic, save this next to vendor/ and run it with PHP:

$metadata->topics()->list() lists cluster topics. Pass a list of Core Topic objects to filter it.

Inspect group offsets

Continue from the example above:

The high watermark is the next offset after the last available record. A group without a committed offset may return a Kafka invalid-offset sentinel. A missing topic is represented in Partitions::list() by a placeholder with partition ID -1.

Change committed offsets

Perform offset administration while the affected consumers are stopped, so they do not overwrite the new offsets. This changes where that group resumes reading:

RD_KAFKA_PARTITION_UA selects every partition. Use a concrete partition ID for one partition. Offset::Early selects its low watermark, Offset::Latest its high watermark; an integer selects an explicit offset. Requests outside the available bounds raise CannotCommitOffsetException.

Each result contains the topic, partition, old offset and new offset. For lower-level access, $metadata->consumerGroup($config) exposes partitions($topicName) and commit($partitionOffsets).

Issues and contributions · Releases · MIT License.


All versions of metadata with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-rdkafka Version *
kafka-bus/core Version ^2.2
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 kafka-bus/metadata contains the following files

Loading the files please wait ...