Skip to content

bitleak/php-kaproxy-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-kaproxy-client

Impl php client for Kaproxy(HTTP Proxy For Kafka)

Install

> git clone [email protected]:platform/php-kaproxy-client.git
> cd php-kaproxy-client 
> composer install

Example

require 'vendor/autoload.php';

use Kaproxy\Client;

$addr = "http://127.0.0.1:8080";
$token = "60009dfa81c54cf99ac843b8b3bc0db1";

$cli = new Client($addr, $token);
var_dump($cli->Produce("test-topic", "test_key", "test_value"));
var_dump($cli->Consume("test-group", "test-topic"));
$cli->Close();

Test

> make test

About

PHP client for kaproxy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages