PHPackages                             tourze/symfony-ssl-request-detect-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. tourze/symfony-ssl-request-detect-bundle

ActiveSymfony-bundle[Security](/categories/security)

tourze/symfony-ssl-request-detect-bundle
========================================

Symfony bundle for detecting and enforcing SSL/HTTPS requests based on various headers and environment variables

0.0.2(4mo ago)00MITPHPCI passing

Since Nov 1Pushed 4mo agoCompare

[ Source](https://github.com/tourze/symfony-ssl-request-detect-bundle)[ Packagist](https://packagist.org/packages/tourze/symfony-ssl-request-detect-bundle)[ RSS](/packages/tourze-symfony-ssl-request-detect-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (14)Versions (3)Used By (0)

SSL Request Detect Bundle
=========================

[](#ssl-request-detect-bundle)

[English](README.md) | [中文](README.zh-CN.md)

[![PHP Version](https://camo.githubusercontent.com/83dd395020c37276225039739320f6c8e7e99963ab21ee3d09282cb48dad2a60/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312532422d626c7565)](https://php.net)[![Symfony](https://camo.githubusercontent.com/348095a0a49711f9cdc83875ee853b3805b09993e1bbae728ef1209990ad9f3d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d372e332532422d677265656e)](https://symfony.com)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![Build Status](https://camo.githubusercontent.com/b0c6c6845a74cb65a7f0a32bdcfd8fbf80eeb40026c4029af424ab371c94b8bd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d627269676874677265656e)](https://github.com/tourze/php-monorepo)

Symfony bundle for detecting and enforcing SSL/HTTPS requests based on various headers and environment variables.

Description
-----------

[](#description)

This bundle provides automatic SSL/HTTPS detection for Symfony applications running behind proxies, load balancers, or in containerized environments. It analyzes request headers and environment variables to determine if the original request was made over HTTPS, and sets the appropriate server variables accordingly.

Features
--------

[](#features)

- 🔒 **Automatic HTTPS Detection** - Detects SSL/HTTPS requests from various sources
- 🌐 **Proxy Support** - Works with reverse proxies and load balancers
- 🐳 **Container Ready** - Kubernetes and Docker support
- ⚡ **High Priority** - Runs early in the request lifecycle (priority 9999)
- 🔧 **Zero Configuration** - Works out of the box with sensible defaults
- 📋 **Multiple Headers** - Supports various forwarding headers

Installation
------------

[](#installation)

Install via Composer:

```
composer require tourze/symfony-ssl-request-detect-bundle
```

If you're using Symfony Flex, the bundle will be automatically registered. Otherwise, add it manually to `config/bundles.php`:

```
