tp8+swoole搭建
1、根据官方文档下载tp8.1.2.
php>8,tp8的运行界面已经不是初心不改了。而是值得托付。
composer create-project topthink/think tp8swoole
cd tp8swoole
composer require topthink/think-swoole





2、下载thinkswoole captcha,image,migration,queue,不要要template和view,现在都前后端分离了,后面用vue3.
测试captcha




3、用swoole命令开启项目

访问这个端口竟然有helloWorld......

为什么我们可以通过:这个命令来启动swoole呢,本质还是命令行扩展
php think swoole

