EASYSWOOLE 聊天室DEMO
1.git拉取代码
git clone https://github.com/easy-swoole/demo.git
2.进入目录
cd demo
3.修改demo下composer.json的require
"require": {
"php": ">=7.1.0",
"ext-swoole": ">=4.0.3",
"easyswoole/easyswoole": "^3.3", //此处改为^3.3
"easyswoole/swoole-ide-helper": "^1.0",
"easyswoole/fast-cache": "^1.0",
"nette/mail": "^3.0",
"easyswoole/template": "^1.0",
"league/plates": "3.*",
"easyswoole/smtp": "^1.0",
"easyswoole/socket": "^1.1"
},
4.安装
composer install
#全部输入n回车
php vendor/easyswoole/easyswoole/bin/easyswoole install
#修改dev.php的配置,修改成自己的服务器IP
'HOST' => 'http://127.0.0.1:9501',
'WEBSOCKET_HOST' => 'ws://127.0.0.1:9501',
# 启动框架
php easyswoole start
5.成功