moell/webim

安装: 478

依赖: 0

建议者: 0

安全性: 0

星星: 187

关注者: 7

分支: 53

公开问题: 0

类型:项目

dev-master 2023-05-30 15:22 UTC

This package is auto-updated.

Last update: 2024-09-30 01:20:35 UTC


README

PHP + Swoole 开发的简单聊天室demo,主要是 websockt 的应用,如果你对学习Swoole有帮助,欢迎 star。

环境要求

  • PHP >= 7.0
  • Swoole
  • composer

安装

composer create-project -s dev moell/webim

或者

git clone https://github.com/moell-peng/webim.git
composer install

启动 websockt

cd ./webim
php webim_server.php

启动 PHP 内置服务器

cd ./public
php -S localhost:8000

通过浏览器访问 localhost:8000 即可进入聊天

截图

webim

许可证

MIT