johnvandeweghe / LunixREST

[DEPRECATED] Use the PHP API Library project instead. https://github.com/johnvandeweghe/php-api-librarary-rest - A lightweight, extensible PHP based REST library.
MIT License
4 stars 0 forks source link

CLIServer option instead of HTTPServer for debugging #42

Open johnvandeweghe opened 7 years ago

johnvandeweghe commented 7 years ago

A CLIServer replaces an HTTPServer, and acts on the cli instead of the HTTP sapi.

johnvandeweghe commented 7 years ago

Not sure this has value, as data passing in cli isn't very easy. Passing JSON around would be messy. Could be made valuable with a custom request parser that just reads regular space separated values. But the ordering would be dependent on the endpoint, so that would be a bit of a smell.