Strict PSR-7 HTTP message implementation from the Slim Framework
open sourceMITfree
Slim-Psr7 is the strict PSR-7 HTTP message implementation used by the Slim framework. It can be used on its own with any framework compatible with the PSR-7 standard. It installs with Composer as slim/psr7.
Problems it solves
- get a PSR-7 request and response implementation for my PHP app
- pick the HTTP message objects to use with Slim 4
- use PSR-7 HTTP messages without a full framework
Features
- strict implementation of the PSR-7 HTTP message interfaces
- the default HTTP messages for Slim 4
- usable with any PSR-7 compatible framework
Limitations
- Requires PHP 8.0 or newer.1
Alternatives
The same job
These do what Slim-Psr7 does.
- laminas-diactoros PSR-7 HTTP messages and PSR-17 factories for PHP, from Laminas
- nyholm/psr7 Small, strict and fast PSR-7 and PSR-17 implementation for PHP
- HTTP Factory for Guzzle PSR-17 HTTP factory implemented on Guzzle's PSR-7 messages
