PHP 客户端库simps/mqtt使用到了 Swoole\Coroutine, 需要单独安装Swoole\Coroutine吗?

通过composer require simps/mqtt, 安装了simps/mqtt, 但是在Publish和Subscribe中调用了Swoole\Coroutine, 然后报错说“Swoole\Coroutine“ 不存在。

”Swoole\Coroutine” 不在composer中一起安装,还需要单独编译安装?

自己答复一下,需要单独安装Swoole. 通过php -m 查看是否存在swoole服务,没有则要安装。