定制 fubber/comet 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fubber/comet

Composer 安装命令:

composer require fubber/comet

包简介

An event based long-polling comet server build using asynchronous PHP with React

README 文档

README

A simple to use comet (long-polling) server, serving old-school json and jsonp.

Installation

Using composer to install

  1. Download and install composer (skip this step if you have already done this)

    curl -sS https://getcomposer.org/installer | php

  2. Add Fubber Comet as a dependency to your project

    ./composer.phar require fubber/comet:dev-master

  3. Configure Fubber Comet (read below)

  4. Start Fubber Comet

    ./vendor/bin/fubber-reactor

Configuration

Create a fubber-reactor.json file in your project root. Add a fubber-comet section where you configure fubber comet according to the following json scheme (pay attention to the database section and http section (put in your own values):

```json

{ "apps": { "\Fubber\Comet\Server": { "database": "master" } }, "database": { "master": { "dsn": "mysql:host=localhost;dbname=databasename", "user": "databaseuser", "password": "databasepassword" } }, "http": { "host": "example.com", "port": 80 } } ```

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2015-02-06