EASYSWOOLE 聊天室DEMO
1.git拉取代碼
git clone https://github.com/easy-swoole/demo.git
2.進(jìn)入目錄
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的配置怖亭,修改成自己的服務(wù)器IP
'HOST' => 'http://127.0.0.1:9501',
'WEBSOCKET_HOST' => 'ws://127.0.0.1:9501',
# 啟動框架
php easyswoole start
5.成功