I have had a look at your package with great interest and noticed something I was totally unaware of : retrieving json data from an http request.
I saw that you used the file_get_contents() function on php://input and this seems weird (and also really new) to me : what part of an http request does it allow to retrieve ? does it work with form data including attached files ? and in fact, could one use this trick to process any kind of data, not only json ?
Vallo Reima - 2015-11-11 11:36:57 - In reply to message 1 from Christian Vigh
The file_get_contents('php://input'); is a convenient method to read raw data from the request body. I use this mainly to process the AJAX JSON requests. The form data is better to send/retrieve via $_POST.
Christian Vigh - 2015-11-11 12:01:59 - In reply to message 2 from Vallo Reima
thanks for the explanation and for the link ! in fact, so far I only considered php://stdin with regards to CLI mode so I somewhat skipped the very interesting paragraph about POST requests in the PHP documentation.
Suddenly I have a myriad of new ideas regarding this feature so... thanks for the approach you have taken for this package and for the knowledge it brings to the developers !