PSR-7 HTTP messages and PSR-17 factories for PHP, from Laminas
open sourceBSD-3-Clausefree
laminas-diactoros is a PHP package of implementations of the PSR-7 HTTP message interfaces and the PSR-17 HTTP message factory interfaces. It's part of the Laminas Project and replaces the earlier phly/http package.
Problems it solves
- use standard PSR-7 request and response objects in a PHP app
- create PSR-7 messages with PSR-17 factories
- pick a PSR-7 implementation for a PHP middleware stack
Features
- implementations of the PSR-7 HTTP message interfaces
- implementations of the PSR-17 HTTP message factories
- documentation at docs.laminas.dev
Alternatives
The same job
These do what laminas-diactoros does.
- nyholm/psr7 Small, strict and fast PSR-7 and PSR-17 implementation for PHP
- Slim-Psr7 Strict PSR-7 HTTP message implementation from the Slim Framework
- HTTP Factory for Guzzle PSR-17 HTTP factory implemented on Guzzle's PSR-7 messages
