slendium/http-superglobals

An implementation of slendium/http based on the PHP superglobals.

Maintainers

Package info

github.com/slendium/http-superglobals

pkg:composer/slendium/http-superglobals

Transparency log

Statistics

Installs: 1

Dependents: 1

Suggesters: 0

Stars: 0

v0.1.0 2026-06-30 04:58 UTC

This package is auto-updated.

Last update: 2026-07-30 05:16:26 UTC


README

Implementation of the slendium/http library.

Incoming requests are based on the PHP superglobals ($_GET, $_POST, $_FILES, $_COOKIE and $_SERVER) and responses can be printed to the output buffer (using header() and echo).

Installation

Simply run composer require slendium/http-superglobals to add it to your project.

Usage

From your PHP script, simply create a new instance of the GlobalRequest object and use it wherever a Slendium\Http\Request is expected.

// instance wrapped in networking information, returns a Networked<Request>
$request = GlobalRequest::createNetworkedInstance();

// regular instance
$request = new GlobalRequest;

// use the request
$response = MyFramework::respond($request);

// output the response
GlobalResponse::output($response);