composer.json-模版

{
  "name": "",
  "description": "Kafka client for php",
  "type": "kafka push api",
  "keywords": [
    "api",
    "Kafka"
  ],
  "require": {
    "nmred/kafka-php": "0.2.*"
  }
}

name description type keywords等直接从github上拉取项目时,copy修改一份。

require是composer update 必须的。直接从github下载的项目文档上找。

参见:

https://github.com/nmred/kafka-example

 

posted @ 2017-06-13 20:00  tianxige  阅读(216)  评论(0编辑  收藏  举报