Skip to content
Pull request Compare This branch is 5 commits ahead, 67 commits behind kafka-dev:master.
Failed to load latest commit information.
src forgot to subtract current offset
LICENSE link to site WS


kafka-php allows you to produce messages to the Kafka distributed publish/subscribe messaging service.


Minimum PHP version: 5.3.3. You need to have access to your Kafka instance and be able to connect through TCP. You can obtain a copy and instructions on how to setup kafka at


Add the lib directory to the include_path and use an autoloader like the one in the examples directory (the code follows the PEAR/Zend one-class-per-file convention).


The examples directory contains an example of a Producer and a simple Consumer, and an example of the Zookeeper-based Consumer.


  • support for Snappy compression

Contact for questions

Lorenzo Alberton

l.alberton at(@)

Something went wrong with that request. Please try again.