Body

Use the request object’s getBody() method to fetch the raw HTTP request body sent by the HTTP client. This isparticularly useful for Slim application’s that consume JSON or XML requests.

  1. <?php
  2. $app = new \Slim\Slim();
  3. $body = $app->request->getBody();