phabitat / protocol
Installs: 39
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
pkg:composer/phabitat/protocol
Requires
- phabitat/spl: *
Requires (Dev)
This package is not auto-updated.
Last update: 2025-12-07 01:58:03 UTC
README
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();