【thinkphp6.0.8】thinkphp6.0.8安装workerman
直接贴文档的命令安装会报错,需指定3.0以上的版本,进入composer包官网:https://packagist.org,搜索 think-worker 可以看到
3.0以上版本才适合thinkphp6,并且它表示要安装一个 fileinfo 的php拓展,如果你用的是宝塔面板的话,可以这样安装:
然后修改composer.json文件,加入一行:
然后删掉 vendor 文件夹,执行 composer install