1.1.1. Overview

The Sapien Request is a value object, composed of other value objects, representing the PHP request received by the server. Use a Request instead of the various PHP superglobals.

1.1.1.1. Instantiation

Instantiation of Request is straightforward:

use Sapien\Request;

$request = new Request();

1.1.1.2. Further Reading

The Request provides public readonly properties related to these areas:

You can also extend the Request for your own purposes.