2017 © Pedro Peláez
 

library protocol

image

phabitat/protocol

  • Thursday, December 24, 2015
  • by ianbytchek
  • Repository
  • 1 Watchers
  • 1 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

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., (*1)

Examples

// Create request from superglobals.

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

The Versions

24/12 2015

0.0.0

0.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ian Bytchek

24/12 2015

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ian Bytchek

24/12 2015

0.0.1

0.0.1.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ian Bytchek