Actually php://input
allows you to read raw request body.
It is a less memory intensive alternative to $HTTP_RAW_POST_DATA and does not need any special php.ini directives.
From Reference
php://input
is not available withenctype="multipart/form-data"
.