You are viewing the website for BitFrame v1. BitFrame v2.0 was released on 11-May-2020 — new documentation and website will be available soon!

How To

Learn how to retrieve request parameter values in BitFrame Microframework

Get Request Params


You can get $_GET params by using the getQueryParams() method like so:

$params = $request->getQueryParams();

foreach($params as $key => $param){
    // GET parameters...


You can get $_POST or $_PUT params by using the getParsedBody() method like so:

$params = $request->getParsedBody();

foreach($params as $key => $param){
   // POST or PUT parameters...


Let us know if you have something to say or add