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.
Installs: 55
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/per-seo/forwarded-proto
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?