substancephp / http
An HTTP request handling library for modern PHP
v0.7.1
2026-08-30 20:35 UTC
Requires
- php: >=8.4
- laminas/laminas-diactoros: ^3.8
- laminas/laminas-escaper: ^2.18
- laminas/laminas-httphandlerrunner: ^2.13
- nikic/php-parser: ^5.0
- 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: ^0.6.2
Requires (Dev)
- ext-xdebug: *
- friendsofphp/php-cs-fixer: ^3.95
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.1
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-master
- v0.7.1
- v0.7.0
- v0.6.0
- v0.5.0
- v0.4.1
- v0.4.0
- v0.3.1
- v0.3.0
- v0.2.0
- v0.1.0
- v0.0.20
- v0.0.19
- v0.0.18
- v0.0.17
- v0.0.16
- v0.0.15
- v0.0.14
- v0.0.13
- v0.0.12
- v0.0.11
- v0.0.10
- v0.0.9
- v0.0.8
- v0.0.7
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- v0.0.1
- dev-document-templating-system
- dev-elements
- dev-layouts
- dev-partials
- dev-path-params
- dev-better-escaping
This package is auto-updated.
Last update: 2026-08-30 20:36:25 UTC
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
Getting started
TODO
Table of contents
The following feature docs are planned but not yet written:
- Routing (TODO)
- Actions (TODO)
- Middleware (TODO)
- Application setup (TODO)
- Requests and parameters (TODO)
- Responses and content types (TODO)
- Error handling (TODO)