curl / PHP · June 19, 2015 1

Read Json Request in PHP

To receive curl post request you can directly get it from php://input as all input variables
like below

file_get_contents('php://input');

and you can get json as follow

json_decode(file_get_contents('php://input'));