sapien/sapien

Server API (SAPI) request and response objects for PHP.

1.1.1 2023-07-01 14:43 UTC

This package is auto-updated.

Last update: 2024-05-27 16:40:13 UTC


README

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.