for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bonfim\Router;
class Request
{
private $request;
public function __construct()
$this->request = json_decode(file_get_contents('php://input')) ?? (object) $_REQUEST;
}
public function get(string $name)
return $this->request->$name ?? null;