My thought was to just add an xterms wrapper for the php-server
node package. So something like php serve
with switches like --port/-p --host/-h and whatnot. I’ll test later. We already support Python (limited through Rust Python and not a web technology; seems alpha at best). So I mean it would make more sense to add PHP support than that, lol.
But I have a side project to replace the Web Container terminal (aka. Xterm
with JQuery-terminal
) altogether to make it lighter with better support. For things like git
(with isomorphic-git
), proper python
(with Pyodide), now php
, and hell even help
(weird to me that one’s doesn’t even exist), lol.
But there’s nothing stopping me from technical adding this to xterm
though kind of convoluted. It’s dumb, but I also want proper copypasta shortcuts to work in the terminal, etc.
And the terminal code under the hood could be reused/called for the UI elements, reducing code and making things more consistent; near one-to-one between CLI and GUI.
But that’s just my two cents.