一 thinkphp5整合gatewayworker( thinkphp5+gatewayworker 开发即时聊天 )

thinkphp5+gatewayworker 开发即时聊天

thinkphp5整合gatewayworker

  1. 新建项目Demo
  2. 拷贝thinkphp5框架进项目
  3. 进入thinkphp5根目录,即:Demo目录。
    composer require topthink/think-worker    
  • windows继续执行下面命令,安装workerman。安装完成删除vendor\workerman\workerman
composer require workerman/workerman-for-win
  • windows执行下面命令,安装gatewayworker
composer require workerman/gateway-worker-for-win
  • linux执行下面命令,安装gatewayworker
composer require workerman/gateway-worker

你可能感兴趣的:(gatewayworker)