Yii2 + Swoole + Docker

Hi, i want to create a new website with Yii2 (i use it from 2 years), i always use it with Apache, now i want to use it with Swoole (or open swoole), I’ve been trying for 3 days but without success, can someone help me?
i want to know all the steps, i’ve Windows 10 and Docker Desktop installed, now what should I do now?
thanks for your time

https://www.yiiframework.com/extension/swoole-foundation/yii2-swoole-extension#yii2-swoole-extension

Consider use the extension as a starting-point. At least review its code to gain some knowledge how to start.
Show us what you have done so far and what stops you, then it will be more plausible that somebody can help.

Yeah, i had tryed this extension.
The steps are:

  • instal Yii2 (ok)
  • add extension (ok)
  • add files (ok)
  • run php command (error)
    because the file Server.php at second line execute “use Swoole\Runtime;” and Swoole is not a class of extension (the first line is ok, it’s a extension’s class), so it’s return error: “class not found”.
    So I think I forgot to install something, but I don’t know what.

I another guide they said to install Swoole extension, but if i’m in docker, how can i install? and what?

It’s my first time on Docker so i don’t undestand some steps, that’s why i asked for all the steps :frowning:

If you’re not familiar with docker I think it would be good to prepare some simple docker hosted project at first to get used to it a bit. Especially, be ready to use docker-compose tool, it is very convenient.

To manage composer’s driven apps, composer image is ready to use: https://hub.docker.com/_/composer

Next, have a look on https://hub.docker.com/r/phpswoole/swoole