定制 pmill/php-chat 二次开发

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

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

pmill/php-chat

最新稳定版本:0.2.0

Composer 安装命令:

composer require pmill/php-chat

包简介

A multi-user multi-room ratchet server

README 文档

README

Build Status Code Climate Test Coverage Test Coverage

Introduction

A multi-user multi-room ratchet server.

Requirements

This library package requires PHP 5.4 or later.

Installation

Installing via Composer

The recommended way to install php-chat is through Composer.

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

Next, run the Composer command to install the latest version of php-chat:

composer.phar require pmill/php-chat

After installing, you need to require Composer's autoloader:

require 'vendor/autoload.php';

Usage

An example is provided in the example/ directory. Start the server with the command:

php example/server.php

An barebones example HTML client interface is located at example/client.html. You will need to update the chatUrl variable in example/chat.js with the host name (or ip address) of the server you ran the previous command on.

var chatUrl = 'ws://your-host-name:9911';

A prettier React and Semantic UI client interface is located at pmill/react-chat.

Version History

0.2.0 (09/07/2015)

  • Separated server and output into separate classes
  • Added user defined message logging

0.1.0 (08/07/2015)

  • First public release of php-chat

Copyright

php-chat Copyright (c) 2015 pmill (dev.pmill@gmail.com) All rights reserved.

统计信息

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

GitHub 信息

  • Stars: 29
  • Watchers: 9
  • Forks: 16
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-08