All Projects → kong36088 → ChatRoom

kong36088 / ChatRoom

Licence: other
一个在线聊天室demo,基于PHP SWOOLE,需要SWOOLE拓展的支持

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to ChatRoom

vertica-swoole-adapter
Provides a DB layer for Swoole-based applications to communicate to HP Vertica databases.
Stars: ✭ 14 (-46.15%)
Mutual labels:  swoole
one-app
one 框架初项目始化
Stars: ✭ 19 (-26.92%)
Mutual labels:  swoole
swoole mqtt
一个基于swoole的异步mqtt 客户端库,可用于接收或者发送mqtt协议的消息。支持QoS 0、QoS 1、QoS 2。支持MQTT 3.1和3.1.1版本。 参考workerman-mqtt
Stars: ✭ 41 (+57.69%)
Mutual labels:  swoole
zhamao-framework
协程、高性能、灵活的聊天机器人 & Web 开发框架(炸毛框架)
Stars: ✭ 99 (+280.77%)
Mutual labels:  swoole
hyperf-v2-demo
Hyperf Demo(easywechat,chat)
Stars: ✭ 19 (-26.92%)
Mutual labels:  swoole
React-Native-Demo
No description or website provided.
Stars: ✭ 25 (-3.85%)
Mutual labels:  chat-room
chat-here
A responsive chat room based on Laravel5.4 and GatewayWorker3.0. (基于 Laravel 5.4 和 GatewayWorker 3.0 的响应式聊天室。)
Stars: ✭ 24 (-7.69%)
Mutual labels:  chat-room
swoole-demo
This is a simple swoole usage demo
Stars: ✭ 26 (+0%)
Mutual labels:  swoole
The-chat-room
Python 版的多人聊天室, 图形界面版
Stars: ✭ 100 (+284.62%)
Mutual labels:  chat-room
yafcms
基于yaf+swoole的高效率,快如闪电的博客cms系统!
Stars: ✭ 17 (-34.62%)
Mutual labels:  swoole
request-callback
➰ Swoole request callback for PSR compliant handlers.
Stars: ✭ 22 (-15.38%)
Mutual labels:  swoole
comicchat
Web client and node.js server based off Microsoft Comic Chat.
Stars: ✭ 109 (+319.23%)
Mutual labels:  chat-room
thrift2-hbase
thrift2-hbase component for Hyperf.
Stars: ✭ 14 (-46.15%)
Mutual labels:  swoole
ultraman
奥特曼
Stars: ✭ 45 (+73.08%)
Mutual labels:  swoole
slim-swoole
Slim 3 MVC Skeleton With Swoole
Stars: ✭ 52 (+100%)
Mutual labels:  swoole
ext-postgresql
🐘 Coroutine-based client for PostgreSQL
Stars: ✭ 62 (+138.46%)
Mutual labels:  swoole
swoft-ddz
基于swoft框架开发斗地主
Stars: ✭ 70 (+169.23%)
Mutual labels:  swoole
akka-http-streaming-response-examples
A list of examples that involve streaming with Akka Streams and used together with Akka HTTP
Stars: ✭ 73 (+180.77%)
Mutual labels:  chat-room
laravel-binlog
Add mysql binlog event listening for Laravel ( 为Laravel框架添加Mysql Binlog事件监听 )
Stars: ✭ 19 (-26.92%)
Mutual labels:  swoole
sdebug
Xdebug — Step Debugger and Debugging Aid for PHP
Stars: ✭ 263 (+911.54%)
Mutual labels:  swoole

ChatRoom

本应用是一个在线聊天室。利用了swoole高并发并且异步非阻塞的特点提高了程序的性能。 该应用需要swoole拓展的支持。

安装

安装PHPswoole拓展:pecl install swoole

或到swoole官网获取安装帮助

Demo: 聊天室

运行

开启服务: 将client目录配置到Nginx/Apache的虚拟主机目录中,使index.php可访问。 修改config.php中,IP和端口为对应的配置。

cd /path/to/your/application/
php server.php

Ningx/Apache配置

nginx

server 
{
    listen       80;
    server_name  im.swoole.com;
    index index.shtml index.html index.htm index.php;
    root  /path/to/PHPWebIM/client;
    location ~ .*\.(php|php5)?$
    {
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_index index.php;
        include fastcgi.conf;
    }
    access_log  /Library/WebServer/nginx/logs/im.swoole.com  access;
}

apache

<VirtualHost *:80>
    DocumentRoot "path/to/PHPWebIM/client"
    ServerName im.swoole.com
    AddType application/x-httpd-php .php
    <Directory />
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
        DirectoryIndex index.php
    </Directory>
</VirtualHost>

Docker

利用docker快速搭建项目环境

docker pull kong36088/nginx-php7-swoole

docker run --name chat -p 9501:9501 -p 80:80 -itd kong36088/nginx-php7-swoole bash

我的swoole docker镜像地址:swoole镜像 里面有该镜像的详细使用说明

捐赠

您的支持是对我的最大鼓励! 谢谢你请我吃糖 wechatpay alipay

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].