Skip to content

This is a curated (most likely not complete) list of PSR-15 HTTP Server Middleware Components

License

Notifications You must be signed in to change notification settings

GreenCape/psr15-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

PSR-15 HTTP Server Middleware Components

This is a curated (most likely not complete) list of PSR-15 HTTP Server Middleware Components.

Authentication

Cache

Client Info

Compression

Development Utilities

Error / Exception Handling

Logging

Proxy

Robots

  • PhpMiddleware / BlockRobots Latest Version on Packagist GitHub last commit License
    Enables/disables the robots of the search engines for non-production environment. Automatically adds the X-Robots-Tag header in all responses and returns a default body for /robots.txt request.
  • Middlewares/Recaptcha Latest Version on Packagist GitHub last commit License
    Uses Google reCAPTCHA library for spam prevention. Returns a 403 response if the request is not valid.
  • Middlewares/Robots Latest Version on Packagist GitHub last commit License
    Enables/disables the robots of the search engines for non-production environment. Automatically adds the X-Robots-Tag header in all responses and returns a default body for /robots.txt request.

Router

Security

Session

URL

  • Middlewares/BasePath Latest Version on Packagist GitHub last commit License
    Removes the prefix from the URI path of the request. This is useful to combine with routers if the root of the website is in a subdirectory. For example, if the root of the website is /web/public, a request with the URI /web/public/posts/34 will be converted to /posts/34.
  • Middlewares/Https Latest Version on Packagist GitHub last commit License
    Redirects to https if the request is http and add the Strict-Transport-Security header to protect against protocol downgrade attacks and cookie hijacking according to RFC 6797 HTTP Strict Transport Security (HSTS).
  • Middlewares/Redirect Latest Version on Packagist GitHub last commit License
    Redirects old URLs to new URLs in a SEO friendly way.
  • Middlewares/TrailingSlash Latest Version on Packagist GitHub last commit License
    Normalizes the trailing slash of the URI path. By default removes the slash so, for example, /posts/23/ is converted to /posts/23.
  • Middlewares/Www Latest Version on Packagist GitHub last commit License
    Adds or removes the www subdomain in the host URI and returns a redirect response.

Miscellaneous

Contributing

Please see CONTRIBUTING for details.

License

This list is curated by Niels Braczek.

CC0

To the extent possible under law, the person who associated CC0 with this list has waived all copyright and related or neighboring rights to this list.

You should have received a copy of the CC0 legalcode along with this work. If not, see http://creativecommons.org/publicdomain/zero/1.0/.

About

This is a curated (most likely not complete) list of PSR-15 HTTP Server Middleware Components

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published