httpsoft / http-message
Strict and fast implementation of PSR-7 and PSR-17
Installs: 394 770
Dependents: 95
Suggesters: 1
Security: 1
Stars: 79
Watchers: 4
Forks: 4
Open Issues: 0
Requires
- php: ^7.4|^8.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.1|^2.0
Requires (Dev)
- php-http/psr7-integration-tests: ^1.3
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.7
- vimeo/psalm: ^4.9|^5.2
Provides
README
This package is a lightweight, fast, high-performance and strict implementation of the PSR-7 HTTP Message and PSR-17 HTTP Factories.
The package does not contain any additional functionality other than that defined in the PSR interfaces.
Documentation
Installation
This package requires PHP version 7.4 or later.
composer require httpsoft/http-message
Benchmark
See benchmark at https://github.com/devanych/psr-http-benchmark.
Usage
For a description of how to use the package components, see the PSR-7 and PSR-17 specifications and package documentation.
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
You can use the httpsoft/http-runner package to run requests to the server and emit responses, as well as build the PSR-15 middleware pipelines.
composer require httpsoft/http-runner