【PHP】初始Swoole--编写一个简单的api接口
使用前准备1、安装swoole4.6.5版本(略过)2、下载swoole的ide-helper方便编写代码git clone https://github.com/swoole/ide-helper.git3、在phpstorm左侧右键External Libraries,打开Configure PHP Include Path,点击图标“+” 添加下载好的helper库,应用并且确定。编写http服务
<?php
\Swoole\Coroutine\run(function (){
$http =
原创
2021-08-27 15:15:06 ·
1095 阅读 ·
0 评论