bellisq/frontend

v1.0.0 2017-12-05 08:48 UTC

README

Usage

use Bellisq\Frontend\RequestMutable;
use Bellisq\Frontend\RequestImmutable;

$r = new RequestMutable($_GET, $_POST, $_COOKIE, $_FILES, $_SERVER);

$id = $r->get['id'];
$id = $r->get('id', 0); // Not Implemented Yet
$r->get['id'] = 33;
$https = $r->server->isHTTPS;

$ri = new RequestImmutable($r);
$id = $ri->get['id'];
$id = $ri->get('id', 0);
$https = $ri->server->isHTTPS;
$reqURI = $ri->server->requestURI ?? 'error/404';