sapien/sapien

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

Installs: 48 494

Dependents: 4

Suggesters: 0

Security: 0

Stars: 45

Watchers: 3

Forks: 4

Open Issues: 1

pkg:composer/sapien/sapien

1.1.2 2025-02-03 19:53 UTC

This package is auto-updated.

Last update: 2025-10-01 00:09:52 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.