Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moell-peng/webim
PHP + Swoole 实现的简单聊天室
https://github.com/moell-peng/webim
php7 swoole swoole-websocket websocket
Last synced: 3 days ago
JSON representation
PHP + Swoole 实现的简单聊天室
- Host: GitHub
- URL: https://github.com/moell-peng/webim
- Owner: moell-peng
- Created: 2017-05-04T16:54:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-30T15:22:03.000Z (over 1 year ago)
- Last Synced: 2024-12-30T09:12:52.062Z (10 days ago)
- Topics: php7, swoole, swoole-websocket, websocket
- Language: PHP
- Size: 261 KB
- Stars: 188
- Watchers: 7
- Forks: 53
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## moell/webim
PHP + Swoole 开发的简单聊天室demo, 主要是 websockt 的应用, 如果对你学习Swoole有帮助,欢迎 star 。## 环境要求
* PHP >= 7.0
* Swoole
* composer
## 安装
```
composer create-project -s dev moell/webim
```
or
```
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](http://moell.cn/uploads/webim/show.png "webim")## License
MIT