Kraken演示应用--聊天

Kraken 分布式聊天演示应用程序。「Kraken Demo Application - Distributed Chat」

Github星跟蹤圖

Kraken 演示应用程序 -- 聊天

注意:此存储库包含基于 Kraken Framework 的预配置的分布式聊天应用程序。

描述

该存储库演示了使用 Kraken Framework 组件在 PHP 中使用 HTTP 和 Websocket 服务器进行聊天的示例性实现。

架构

要求

  • PHP-5.5,PHP-5.6或PHP-7.0 +,
  • 启用了 Pthreads 扩展(仅当您想使用线程时),
  • UNIX 操作系统。

安装和官方文档

要安装此应用程序框架,请转到所需位置存储项目,然后调用 composer:

composer create-project --prefer-dist kraken-php/demo-chat .

该框架的文档可以在官方文档页面中找到。

开始项目

基本开始

要启动项目,请首先运行 kraken.server 实例。

$> php kraken.server

然后,在另一个终端窗口中检查连接是否正常工作:

$> php kraken server:ping

如果一切正常,作为最后一步,请使用以下命令运行应用程序:

$> php kraken project:create

成功创建项目后,在浏览器中转到 http://localhost:6080 地址,您应该能够看到和使用示例聊天。

要关闭整个项目,请使用:

$> php kraken project:destroy

如果在配置控制台服务器连接时遇到问题,也可以尝试替代启动。

替代开始

要在没有控制台支持的情况下直接启动项目,请使用:

$> php ./data/autorun/kraken.process undefined HttpBroker HttpBroker

警告此方法将在即将发布的 0.4 版中弃用。

贡献

该库是 Kraken Framework 的预配置项目应用程序。要做出贡献,请转到框架存储库

许可

Kraken Framework 是根据 MIT 许可获得许可的开源软件。该文档根据 FDL-1.3 许可提供。

(The first version translated by vz on 2020.08.01)

主要指標

概覽
名稱與所有者kraken-php/demo-chat
主編程語言PHP
編程語言PHP (語言數: 4)
平台BSD, Linux, Mac, Solaris, Unix-like
許可證Apache License 2.0
所有者活动
創建於2016-09-30 23:48:41
推送於2016-10-14 04:43:25
最后一次提交2016-10-14 04:42:30
發布數1
最新版本名稱v0.3.0 (發布於 )
第一版名稱v0.3.0 (發布於 )
用户参与
星數48
關注者數5
派生數14
提交數10
已啟用問題?
問題數7
打開的問題數5
拉請求數3
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

Kraken Demo Application - Chat

Total Downloads
Latest Stable Version
Latest Unstable Version
License
Gitter
@kraken_php on Twitter

Note: This repository contains pre-configured distributed chat application based on Kraken Framework.

Description

This repository demonstrates exemplary implementation of chat using HTTP and Websocket servers in PHP using Kraken Framework components.

Architecture

Screenshots

Requirements

  • PHP-5.5, PHP-5.6 or PHP-7.0+,
  • Pthreads extension enabled (only if you want to use threading),
  • UNIX or Windows OS.

Installation and Official Documentation

To install this application skeleton, please go to desired location to store project, then call composer:

composer create-project --prefer-dist kraken-php/demo-chat .

Documentation for the framework can be found in the official documentation page.

Starting Project

Basic Start

To start project, first run kraken.server instance.

$> php kraken.server

Then, check if connection is working in another terminal window:

$> php kraken server:ping

If everything works correctly, as final step run the application using:

$> php kraken project:create

After project has been created successfully, go to http://localhost:6080 address in your browser and you should be able
to see and use examplary chat.

To close whole project, use:

$> php kraken project:destroy

If you have problems with configuring console-server connection, you can also try alternative start.

Alternative Start

To start project directly, without console support, use:

$> php ./data/autorun/kraken.process undefined HttpBroker HttpBroker

WARNING This method will be deprecated in upcoming ver 0.4.

Contributing

This library is pre-configured project application for Kraken Framework. To make contributions, please go to framework repository.

License

Kraken Framework is open-sourced software licensed under the MIT license. The documentation is provided under FDL-1.3 license.