PHPackages                             hky/kafka - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. hky/kafka

ActiveLibrary[HTTP &amp; Networking](/categories/http)

hky/kafka
=========

kafka client

25[1 issues](https://github.com/luoningift/kafka/issues)PHP

Since Aug 20Pushed 5y ago2 watchersCompare

[ Source](https://github.com/luoningift/kafka)[ Packagist](https://packagist.org/packages/hky/kafka)[ RSS](/packages/hky-kafka/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

#### hky-kafka

[](#hky-kafka)

##### 1.安装

[](#1安装)

在项目中 `composer.json` 的 `repositories` 项中增加

```
{
    ....
    "repositories":{
        "hky/hyperf-kafka-client":{
            "type":"vcs",
            "url":"http://icode.kaikeba.com/base/hky-packages-hyperf-kafka-client.git"
        }
        ....
    }
}

```

修改完成后执行

```
$ composer require hky/hyperf-kafka-client
$ php bin/hyperf.php vendor:publish hky/hyperf-kafka-client
```

如果遇到错误信息为: `Your configuration does not allow connections to http://icode.kaikeba.com/base/hky-packages-hyperf-http-client.git. See https://getcomposer.org/doc/06-config.md#secure-http for details`执行以下命令

```
$ composer config secure-http false
```

##### 2.配置文件说明config/autoload/hky\_kafka.php

[](#2配置文件说明configautoloadhky_kafkaphp)

```
