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'));
Advertisements