### 安装swoole
宝塔面板->php->设置->安装扩展->swoole
### 下载安装
composer require easyswoole/easyswoole=3.x
php vendor/easyswoole/easyswoole/bin/easyswoole install
### 启动
php easyswoole start
### 以守护进程启动
php easyswoole start d
### 编辑根目录下的composer.json文件 支持psr-4
"autoload": {
"psr-4": {
"App\\": "App/"
}
},
### 更新命名空间映射
composer dumpautoload
### 新建控制器 输出helloword
<?php
namespace App\HttpController;
use EasySwoole\Http\AbstractInterface\Controller;
class Index extends Controller
{
public function index()
{
$this->response()->write('hello world');
}
}