Skip to content

[READ ONLY] Subtree split of the snicco/https-only-middleware package (see snicco/snicco).

License

Notifications You must be signed in to change notification settings

snicco/https-only-middleware

Repository files navigation

HTTPS-only middleware for snicco/http-routing

codecov Psalm Type-Coverage Psalm level PhpMetrics - Static Analysis PHP-Versions

A middleware for the snicco/http-routing component that will redirect all http requests to https.

Installation

composer require snicco/https-only-middleware

Usage

This middleware should be added for globally in the MiddlewareResolver.

There are no configuration options besides a boolean flag in the constructor to indicate a local environment (to suppress the redirect).

Contributing

This repository is a read-only split of the development repo of the Snicco project.

This is how you can contribute.

Reporting issues and sending pull requests

Please report issues in the Snicco monorepo.

Security

If you discover a security vulnerability, please follow our disclosure procedure.

About

[READ ONLY] Subtree split of the snicco/https-only-middleware package (see snicco/snicco).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages