It is replaced by the following packages offering the same fonctonnalities in a more portable way:
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.
Provides the folowing middleware:
RobotsTxtMiddleware
Sends a response to/robots.txt
requests using arcanedev/robots to generate the response in therobots.txt
format
Provides the folowing middleware:
SiteMapMiddleware
Send a response to/sitemap.xml
requests using tackk/cartographer to generate the response in thesitemap.xml
format
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
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
The following middleware are abandoned:
CallableMiddleware
Uses a callable as a middlewareExceptionCaptureMiddleware
Captures exceptions thrown during the handling of the request
The library is published under the MIT license (see LICENSE
file).