Skip to content

Lightweight abstraction layer for dealing with HTTP requests, responses and cookies

Notifications You must be signed in to change notification settings

Phabitat/protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Protocol

A super lightweight abstraction layer for dealing with HTTP requests, responses and cookies. Comes with near-zero dependencies and a bunch of very useful HTTP constants. As every member in Phabitat family, Protocol is about doing only one thing well – allowing to parse and compose requests and responses. Unlike some popular libraries, it doesn't take responsibility for downloading or sending any data – that's not what an abstraction layer is about.

Examples

// Create request from superglobals.

$request    = SuperglobalsFactory::instance()->construct();
$ajax       = $request->isAjax();
$method     = $request->getMathod();
$parameters = $request->getParameters();

About

Lightweight abstraction layer for dealing with HTTP requests, responses and cookies

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages