I am developin on Windows 10 machine, and wanted to use Linux PHP binary in Bash on Ubuntu on Windows (WSL subsystem) directly for running scripts and debugging from inside PhpStorm.
I created a proxy scripts that let PhpStorm think that PHP binary is installed on the system. But in the background, they start the PHP inside the Windows Bash and forward everything to it. Also XDebug is working.
Maybe you could enjoy this little helper as well :-) And if you had time to write me a feedback, I would be more than happy.
> Download: https://github.com/michal-kocarek/PhpOnWindows