codeinc / psr15-middlewares
A collection a PSR-15 middlewares
Installs: 21
Dependents: 0
Suggesters: 1
Security: 0
Stars: 1
Watchers: 2
Forks: 0
pkg:composer/codeinc/psr15-middlewares
Requires
- php: >=7.1
- arcanedev/robots: ^2.0
- codeinc/psr7-responses: ^1.2
- guzzlehttp/psr7: ^1.4
- hansott/psr7-cookies: ^1.0
- micheh/psr7-cache: ^0.5.0
- psr/http-message: ^1.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
- tackk/cartographer: ^1.1
Requires (Dev)
Suggests
- codeinc/middleware-dispatcher: A PSR-15 middleware dispatcher
- codeinc/psr7-response-sender: A PSR-7 response sender
- codeinc/router: A PSR-7 & PSR-15 router
This package is auto-updated.
Last update: 2022-02-01 13:12:38 UTC
README
⚠️ This library is deprecated and should not be used.
It is replaced by the following packages offering the same fonctonnalities in a more portable way:
codeinc/http-headers-middleware
Provides the folowing middleware:
AddHttpHeadersMiddlewareAdds HTTP headers to the responseCacheMiddlewareAdds cache headers to the responseNoCacheMiddlewareAdds cache prevention headers to the responsePoweredByMiddlewareAdds aX-Powered-ByHTTP headers to the responseHttpVersionCheckMiddlewareInsure that the HTTP version of the response is the same of the version used for the request.
codeinc/robots-txt-middleware
Provides the folowing middleware:
RobotsTxtMiddlewareSends a response to/robots.txtrequests using arcanedev/robots to generate the response in therobots.txtformat
codeinc/sitemap-middlware
Provides the folowing middleware:
SiteMapMiddlewareSend a response to/sitemap.xmlrequests using tackk/cartographer to generate the response in thesitemap.xmlformat
codeinc/compatibility-middleware
Provides the folowing middleware:
PhpGpcVarsMiddlewareExtract PSR-7 request data to PHP GPC variables$_GET,$_POST,$_COOKIEand$_SERVERPhpSessionMiddlewareRead sesion cookie from PSR-7 requests and add session cookie to PSR-7 responses
codeinc/security-middleware
Provides the folowing middleware:
ContentSecurityPolicyMiddlewareAdds aContent-Security-PolicyHTTP headers to the responseContentTypeOptionsMiddlewareAdds aX-Content-Type-OptionsHTTP headers to the responseExpectCtMiddlewareAdds aExpect-CTHTTP headers to the responseFrameOptionsMiddlewareAdds aX-Frame-OptionsHTTP headers to the responseReferrerPolicyMiddlewareAdds aReferrer-PolicyHTTP headers to the responseStrictTransportSecurityMiddlewareAdds aStrict-Transport-SecurityHTTP headers to the responseXssProtectionMiddlewareAdds aX-Xss-ProtectionHTTP headers to the responseBlockUnsecureRequestsMiddlewareBlocks unsecure (other thanHTTPS) requests responses
Abandoned middleware
The following middleware are abandoned:
CallableMiddlewareUses a callable as a middlewareExceptionCaptureMiddlewareCaptures exceptions thrown during the handling of the request
License
The library is published under the MIT license (see LICENSE file).