2017 © Pedro Peláez
 

library comet

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

image

fubber/comet

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

  • Sunday, February 8, 2015
  • by frodeborli
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

fubber-comet

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

Installation

Using composer to install

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

    curl -sS https://getcomposer.org/installer | php, (*3)

  2. Add Fubber Comet as a dependency to your project, (*4)

    ./composer.phar require fubber/comet:dev-master, (*5)

  3. Configure Fubber Comet (read below), (*6)

  4. Start Fubber Comet, (*7)

    ./vendor/bin/fubber-reactor, (*8)

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):, (*9)

```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)

The Versions

08/02 2015

dev-master

9999999-dev

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

  Sources   Download

GPL-2.0

The Requires

 

by Frode Borli

php websockets long-polling comet