substancephp / http
An HTTP request handling library for modern PHP
v0.2.0
2026-07-26 21:11 UTC
Requires
- php: >=8.4
- ext-xdebug: *
- laminas/laminas-diactoros: ^3.8
- laminas/laminas-httphandlerrunner: ^2.13
- psr/container: ^2.0
- psr/http-factory: ^1.1
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
- psr/log: ^3.0
- substancephp/container: v0.6.1
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.1
- squizlabs/php_codesniffer: *
README
Overview
substancephp/http is a library for building web applications in PHP. It
supports rendering both JSON and HTML.
This is a work in progress and is not ready for general use. There are regularly breaking changes from version to version.
Philosophy
This project embraces:
- Modern PHP
- PSR standards
- Filepath based routing
- Inversion of control
- Static analysis
This project steers away from:
- Compilation steps (e.g. no template compilation)
- Controller classes
Installation
TODO
Usage
TODO