HHVMCraft
HHVMCraft copied to clipboard
Server CLI
When executing the script, it should open up a shell interface. Allows simple management commands like kick, ban, give, etc.
Might be worth taking a look at Symfony's Console component. Are the kick/ban methods already in place?
The kick and ban commands aren't implemented yet, I should probably create a new issue for all the ones I want to add.
The console part is a little tricky, ReactPHP is in an infinite loop and won't be able to display a console prompt immediately.
In which case would you need a separate socket connection to feed console commands into, or would it be able to exist as part of the main thread?
I've been looking at https://github.com/mcrumm/pecan/blob/develop/README.md and it looks like there's ways to integrate it within a pre-existing application. I might give this a shot first.