kafka-php | kafka php client | Pub Sub library
kandi X-RAY | kafka-php Summary
kandi X-RAY | kafka-php Summary
[GitHub license] Kafka-php is a pure PHP kafka client that currently supports greater than 0.8.x version of Kafka, this project v0.2.x and v0.1.x are incompatible if using the original v0.1.x You can refer to the document [Kafka PHP v0.1.x Document] but it is recommended to switch to v0.2.x . v0.2.x use PHP asynchronous implementation and kafka broker interaction, more stable than v0.1.x efficient, because the use of PHP language so do not compile any expansion can be used to reduce the access and maintenance costs.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get API version
- Decodes a message .
- Writes data to the socket
- Commit all changes
- Send a record set
- Parse a member .
- Assign all members from the result set .
- Get connect socket
- Success callback .
- Encode a message .
kafka-php Key Features
kafka-php Examples and Code Snippets
Community Discussions
Trending Discussions on kafka-php
QUESTION
I want create a topic with kafka-php programming library.
https://github.com/weiboad/kafka-php
How can I do?
If topic doesn't exist in kafka server, executing this code, it doesn't work. It doesn't insert 10 messages "test1....message." because topic isn't create.
...ANSWER
Answered 2022-Mar-16 at 09:28I don't think there is support for this in the available PHP libraries.
The functionality is implemented in the Admin API in the Java client library for Kafka which will enable you to create a topic. I found this github issue against another PHP Kafka client regarding implementing the Admin API but it has not been done.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install kafka-php
Simply add a dependency nmred/kafka-php to your project if you use Composer to manage the dependencies of your project.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page