Download the PHP package gilsegura/psr-server without Composer
On this page you can find all versions of the php package gilsegura/psr-server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download gilsegura/psr-server
More information about gilsegura/psr-server
Files in gilsegura/psr-server
Download gilsegura/psr-server
More information about gilsegura/psr-server
Files in gilsegura/psr-server
Vendor gilsegura
Package psr-server
Short Description The component provides infrastructure for building PSR-15 request handlers and middleware pipelines, plus a typed response factory for serializable payloads.
License MIT
Package psr-server
Short Description The component provides infrastructure for building PSR-15 request handlers and middleware pipelines, plus a typed response factory for serializable payloads.
License MIT
Please rate this library. Is it a good library?
Informations about the package psr-server
PSR SERVER
Minimal, framework-agnostic PSR-15 server primitives: a middleware runner, a request handler and a response factory. It gives you the small pieces needed to run a request through a middleware pipeline and build a response, without pulling in a full framework.
Installation
Middleware pipeline
MiddlewareRunner— takes a variadic list of PSR-15 middlewares and runs a request through them in order, delegating to a terminalRequestHandlerInterfaceat the end. It is the engine behind a request pipeline.StackMiddleware— adapts the run to the PSR-15 stack model, advancing to the next middleware in the chain.RequestHandler— aRequestHandlerInterfacethat wraps the runner and a terminal handler, so the whole pipeline is itself a single PSR-15 handler.
Responses
ResponseFactory— an invokable that builds a PSR-7 response from a status and body.Status— anint-backed enum of HTTP status codes (OK,CREATED,NO_CONTENT,BAD_REQUEST,UNAUTHORIZED, …), so status codes are referenced by name instead of magic numbers.
License
MIT. See LICENSE.
All versions of psr-server with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.4
gilsegura/serializer Version ^1.0
psr/http-factory Version ^1.1
psr/http-message Version ^2.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
gilsegura/serializer Version ^1.0
psr/http-factory Version ^1.1
psr/http-message Version ^2.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
The package gilsegura/psr-server contains the following files
Loading the files please wait ...