Search by

hydrakit / http

whleucka

PSR-7/PSR-15 HTTP layer: request lifecycle, routing, and middleware pipeline.

Package info

github.com/hydra-foundation/http

Homepage

pkg:composer/hydrakit/http

Statistics

Installs: 1 506

Dependents: 9

Suggesters: 0

Stars: 0

v0.24.0 2026-10-02 15:42 UTC

README

Part of the Hydra PHP framework. Documentation: hydra.williamhleucka.com/docs.

Read-only mirror. hydrakit/http is developed in hydra-foundation/hydra under packages/http, and republished here on every push. A commit pushed to this repository is overwritten by the next one; issues are disabled for that reason, and a pull request opened here cannot be merged. Both belong upstream.

The request lifecycle: a PSR-15 middleware pipeline wrapping a router, typed HTTP errors, and the glue that turns a controller's return value into an emitted PSR-7 response. Depends only on PSR-7/-15/-17 interfaces; the concrete request, response, and factory implementations are the application's to bind. It also pages lists: Paging reads the request, Paginated holds the result, and Responder::paginated() renders it as JSON with a Link header.