ideiasinsolitas/deck-http

There is no license information available for the latest version (dev-master) of this package.

Http library

Maintainers

Package info

github.com/ideiasinsolitas/http

pkg:composer/ideiasinsolitas/deck-http

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2015-08-07 02:24 UTC

This package is not auto-updated.

Last update: 2026-04-01 16:36:30 UTC


README

HTTP abstraction

The purpose of this package is to abstract away PHP`s superglobals $_SERVER, $_POST and $_GET and sending of response headers. Use Enviroment and Request to parse an HTTP request and the use a Response object to create and send Header objects and terminate the response.

CookieJar and Session objects come with native encryption and will abstract the use of $_SESSION and $_COOKIE vars.

$env = new Enviroment();
$req = new Request($env);

$res = new Response();
$res->write('test...');
$res->send();