kingpanda-lab/kafka-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kingpanda-lab/kafka-client

Composer 安装命令:

composer require kingpanda-lab/kafka-client

包简介

A minimal kafka stream client using the components of byjg/message-queue-client

README 文档

README

This guide explains how to install and configure the rdkafka extension in PHP 8.3, which is a required dependency for the php-kafka-client library. This setup enables interaction with Apache Kafka in your PHP applications.

1. Install Dependencies

First, install the librdkafka library, which is required for the extension to work:

sudo apt install librdkafka-dev

2. Install the rdkafka Extension

Now, install the rdkafka extension using PECL:

sudo pecl install rdkafka

3. Enable the Extension in PHP

After installation, add the extension to PHP by creating a configuration file:

echo "extension=rdkafka.so" | sudo tee /etc/php/8.3/mods-available/rdkafka.ini

Now, enable the extension with:

sudo phpenmod -v 8.3 rdkafka

4. Verify if the Extension is Active

To check if rdkafka is correctly installed, run:

php -m | grep rdkafka

If the extension is installed correctly, the command above should display rdkafka in the output.

Now your PHP environment is ready to use php-kafka-client to interact with Apache Kafka! 🚀

统计信息

  • 总下载量: 117
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-03-06