This package provides server API (SAPI) request and response objects for PHP 8.1:
-
Sapien\Request, composed of readonly copies of PHP superglobals, and some other commonly-used values such as Accept, Forwarded, and Upload collections
-
Sapien\Response, a wrapper around (and buffer for) response-related PHP functions
These are not HTTP message objects proper. Instead, they are wrappers and buffers for existing global PHP variables and functions.
Install this package via Composer:
composer require sapien/sapien
Read the docs at http://sapienphp.com.