per-seo / forwarded-proto
X-Forwarded-Proto for Slim 4. This Middleware check if the X-Forwarded-Proto header is present and add correct schema in the request object.
1.0
2024-11-22 09:27 UTC
Requires
- php: >=7.4
- psr/http-server-middleware: ^1
Requires (Dev)
- friendsofphp/php-cs-fixer: >=2
- overtrue/phplint: ^2
- phpstan/phpstan: >=1
- phpunit/phpunit: ^11.4
- slim/psr7: ^1
- slim/slim: ^4
- squizlabs/php_codesniffer: ^3
README
A simple middleware for Slim4 framework to configure proper uri schema. Usage is very simple, just enable this Middleware (in the Middleware part of your Slim4 Project) with:
<?php use PerSeo\Middleware\ForwardedProto\ForwardedProto; $app->add(ForwardedProto::class);
Simple, isn't it?