Strict and fast implementation of PSR-7 and PSR-17
The package does not contain any additional functionality other than that defined in the PSR interfaces.
This package requires PHP version 7.4 or later.
composer require httpsoft/http-message
|Runs per second||15422||17550||13402||16588||12756|
|Average time per run||0.0648 ms||0.0570 ms||0.0746 ms||0.0603 ms||0.0784 ms|
|Total time||1.9452 s||1.7094 s||2.2384 s||1.8085 s||2.3517 s|
See benchmark at https://github.com/devanych/psr-http-benchmark.
For the convenience of creating requests to the server from PHP superglobals, you can use the httpsoft/http-server-request package.
composer require httpsoft/http-server-request
composer require httpsoft/http-runner