codeinc / psr15-middlewares
This package is abandoned and no longer maintained.
The author suggests using the codeinc/security-middleware package instead.
A collection a PSR-15 middlewares
2.3.2-beta.1
2018-05-02 17:42 UTC
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:
AddHttpHeadersMiddleware
Adds HTTP headers to the responseCacheMiddleware
Adds cache headers to the responseNoCacheMiddleware
Adds cache prevention headers to the responsePoweredByMiddleware
Adds aX-Powered-By
HTTP headers to the responseHttpVersionCheckMiddleware
Insure 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:
RobotsTxtMiddleware
Sends a response to/robots.txt
requests using arcanedev/robots to generate the response in therobots.txt
format
codeinc/sitemap-middlware
Provides the folowing middleware:
SiteMapMiddleware
Send a response to/sitemap.xml
requests using tackk/cartographer to generate the response in thesitemap.xml
format
codeinc/compatibility-middleware
Provides the folowing middleware:
PhpGpcVarsMiddleware
Extract PSR-7 request data to PHP GPC variables$_GET
,$_POST
,$_COOKIE
and$_SERVER
PhpSessionMiddleware
Read sesion cookie from PSR-7 requests and add session cookie to PSR-7 responses
codeinc/security-middleware
Provides the folowing middleware:
ContentSecurityPolicyMiddleware
Adds aContent-Security-Policy
HTTP headers to the responseContentTypeOptionsMiddleware
Adds aX-Content-Type-Options
HTTP headers to the responseExpectCtMiddleware
Adds aExpect-CT
HTTP headers to the responseFrameOptionsMiddleware
Adds aX-Frame-Options
HTTP headers to the responseReferrerPolicyMiddleware
Adds aReferrer-Policy
HTTP headers to the responseStrictTransportSecurityMiddleware
Adds aStrict-Transport-Security
HTTP headers to the responseXssProtectionMiddleware
Adds aX-Xss-Protection
HTTP headers to the responseBlockUnsecureRequestsMiddleware
Blocks unsecure (other thanHTTPS
) requests responses
Abandoned middleware
The following middleware are abandoned:
CallableMiddleware
Uses a callable as a middlewareExceptionCaptureMiddleware
Captures exceptions thrown during the handling of the request
License
The library is published under the MIT license (see LICENSE
file).