A PSR-7/PSR-17/PSR-18 implementation for PHP 7.4+.
See the wiki for advanced documentation. An API documentation created with phpDocumentor can be found at https://chillerlan.github.io/php-httpinterface/ (WIP).
requires composer
composer.json (note: replace dev-main
with a version boundary)
{
"require": {
"php": "^7.4",
"chillerlan/php-httpinterface": "dev-main"
}
}
Profit!
This library contains portions of code (especially tests) from the following libraries:
- Guzzle PSR-7 (MIT)
- bakame-php psr7-uri-interface-tests (MIT)
- Slim (MIT)
- nyholm PSR-7 (MIT)
- caridea-dispatch (Apache)