is there a simple php shell for windows?

前端 未结 9 1820
迷失自我
迷失自我 2021-02-04 11:25

Is there a command line php shell available for windows? I looking for something similar to the python shell, that will allow me to open and immediately begin executing code.

相关标签:
9条回答
  • 2021-02-04 12:24

    There is the windows command line for PHP: http://php.net/manual/en/install.windows.commandline.php

    0 讨论(0)
  • 2021-02-04 12:25

    Maybe answered - Read here: https://stackoverflow.com/a/19085620/2480481 I think i found easiest way to do it because im so interested to use myself :)

    I try all options from here and from some other forums/pages... Windows cannot use readline.

    0 讨论(0)
  • 2021-02-04 12:28

    PsySH is the best REPL shell I have seen recently. Tab-completion, phpdoc support, proper namespace handling, interactive debugging, plugin support and many more. It is pure PHP and has composer support so it should be easy to install on Windows. I have only tried it on Linux but looking at the code, it seems to even have some history support on OSes without readline.

    0 讨论(0)
提交回复
热议问题