sapien / sapien
Server API (SAPI) request and response objects for PHP.
Installs: 44 723
Dependents: 4
Suggesters: 0
Security: 0
Stars: 46
Watchers: 3
Forks: 4
Open Issues: 1
Requires
- php: ^8.1 | ^8.2 | ^8.3 | ^8.4
Requires (Dev)
- ext-xdebug: *
- pds/composer-script-names: ^1.0
- pds/skeleton: ^1.0
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^10.0
- pmjones/php-styler: 0.x-dev
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.