finds.dev

mbinge/phpkafka_ext

producer and consumer client for kafka 0.8+

View on GitHub

★ 1Cupdated Jul 2014

// the take

A PHP extension (PECL-style, written in C) wrapping librdkafka to give PHP scripts a native producer/consumer client for Kafka 0.8. Aimed at PHP shops that need to talk to Kafka without going through a Java bridge or an HTTP REST proxy.

Wrapping librdkafka directly means you get native-speed (de)serialization and the C client's protocol handling instead of a slower userland PHP Kafka client. The scope is honest and narrow: just producer and consumer, no attempt to reimplement Zookeeper coordination or admin APIs in C.

Last commit is from 2014 and targets Kafka 0.8, which predates the 0.9+ consumer group protocol, idempotent producers, transactions, and the wire protocol changes used by every Kafka cluster running today — it will not talk to a modern broker. One star, one fork, no CI, no tests, and no indication it was ever used past a toy example (send.php/recv.php), so there's no evidence it's memory-safe or handles partition rebalancing, retries, or broker failover at all. Building a PHP C extension also means recompiling against your exact PHP and librdkafka versions, which is painful operational overhead for something this unmaintained.

We read the README, the directory tree and a key source file in October 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
1
Forks
1
Language
C
Last commit
24 Jul 2014

// nearby

If phpkafka_ext isn't quite it.

All repos →