# weiboad/kafka-php

kafka php client

Repository: https://github.com/weiboad/kafka-php
Canonical: https://ross.abutalabs.com/products/kafka-php
Language: PHP
License: Apache-2.0
License Family: permissive
Topics: kafka, kafka-consumer, kafka-php, protocol, php
Archived: true
Last push: 2022-03-04T03:29:05+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4446, "days_push": 1643, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1429, forks 438 (observed 2026-08-28T04:04:42.125696+00:00)

## What it is
Kafka-php is a pure PHP client library for Apache Kafka supporting producer and consumer functionality against Kafka brokers 0.8+ (consumer requires 0.9+). It requires no compiled PHP extensions, lowering installation and maintenance cost, with v0.2.x using an asynchronous implementation for improved stability and efficiency.

## Use cases
- produce messages to kafka from php
- consume kafka topics in a php application
- build event-driven pipelines with php and kafka
- stream log events from php services to kafka
- integrate kafka messaging without installing php extensions
- publish async messages to a kafka broker

## When to choose
- your stack is PHP and you need Kafka producer/consumer support
- you cannot compile or install native PHP extensions like rdkafka
- you need a pure-PHP client compatible with Kafka 0.8+ brokers

## When to avoid
- you need maximum throughput or low latency, where a librdkafka-based client is faster
- you need support for the newest Kafka protocol features or active maintenance
- your project runs on PHP versions below 7.1

## Facets
- artifact type: library
- maturity: maintenance
- function: message-queue, database-driver, streaming
- domain: microservices, backend, developer-tools
- platform: php, windows
- tags: kafka, kafka-client, producer, consumer, pure-php, no-extensions, messaging, linux, macos

## Member repositories
- weiboad/kafka-php (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:42.125696+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:37:17.289757+00:00, confidence not recorded.
  - readme: https://github.com/weiboad/kafka-php (fetched 2026-08-28T04:04:42.125696+00:00, sha b244db18dc7a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
